bat文件后台运行

需要在运行的bat文件内容前面加上

if “%1″==”hide” goto CmdBeginstart mshta vbscript:createobject(“wscript.shell”).run(“””%~0″” hide”,0)(window.close)&&exit:CmdBegin