add some codes in the before of your codes
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
:: your codes
add some codes in the before of your codes
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
:: your codes
本文标题:windows batch runs in background
本文链接:https://www.haomeiwen.com/subject/rybtsqtx.html
网友评论