bat里有隐藏窗口的命令,很简单,只须要在代码头部加一段代码就能够了。
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
::下面是你的代码
bat里有隐藏窗口的命令,很简单,只须要在代码头部加一段代码就能够了。
@echo off
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
::下面是你的代码