隐藏CMD窗口,使程序在后台执行
@echo off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
代码放在此处即可
参考链接: https://jingyan.baidu.com/article/cb5d6105a4105e005c2fe0d5.html
@echo off
if "%1"=="h" goto begin
start mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
代码放在此处即可
参考链接: https://jingyan.baidu.com/article/cb5d6105a4105e005c2fe0d5.html