不显示CMD窗口启动文件

runbat.vbs

createobject ("wscript.shell").run "testbat.bat",0


testbat.bat

@echo off
taskkill /f /im  xxx.exe >nul 2>nul
REM [sleep]   ping 127.0.0.1 -n 需要的秒数+1 -w 1000 > nul
ping 127.0.0.1 -n 2 -w 1000 > nul
start xxx.exe
exit

你可能感兴趣的:(不显示CMD窗口启动文件)