bat完全隐藏运行(转)

原文链接:
https://zhidao.baidu.com/question/1756060386189427308.html

在将要隐藏运行的地方插入如下代码即可
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("""%~nx0"" h",0)(window.close)&&exit
:begin
REM
这样之后的任务执行时bat窗口就不见了

猜你喜欢

转载自bettersun.iteye.com/blog/2354544