@echo off
::启动程序
start "C:\Program Files\Test.exe"
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::关闭/杀死进程
@taskkill /f /IM Test.exe
@echo off
::启动程序
start "C:\Program Files\Test.exe"
::等待5秒
start /min /w mshta vbscript:setTimeout("window.close()",5000)
::关闭/杀死进程
@taskkill /f /IM Test.exe