bat文件后台运行需要在运行的bat文件内容前面加上if“%1″==”hide”gotoCmdBeginstartmshtavbscript:createobject(“wscript.shell”).run(“””%~0″”hide”,0)(window.close)&&exit:CmdBegin

bat文件后台运行
需要在运行的bat文件内容前面加上
if “%1″==”hide” goto CmdBeginstart mshta vbscript:createobject(“wscript.shell”).run(“””%~0″” hide”,0)(window.close)&&exit:CmdBegin
