批处理文件后台运行

.bat批处理文件在后台运行,需要在代码头部加一段代码。

@echo off 
if "%1" == "h" goto begin 
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit 
:begin 
::下面是你自己的代码。

猜你喜欢

转载自blog.csdn.net/ShiJian_ShaLou/article/details/84892385
今日推荐