我试图创建一个运行一个.exe的批处理文件,但杀死约10秒钟后说.exe文件(在完成之前),然后在文件中移动到下一个命令。 任何帮助将不胜感激。
Answer 1:
您可以使用此:
start program.exe
ping 127.0.0.1 -n 10
taskkill /im program.exe /f
rem continue here
echo Another command!
文章来源: Need to run an .exe, then kill it after ~10 seconds and move to next command in batch file