循环vbs每5分钟就关闭一次程序

2025-04-04 13:05:35
推荐回答(1个)
回答1:

Dim objShell,target
Set objShell = wscript.CreateObject("wscript.shell")
Wscript.Sleep 300000
target = "123.exe"
objShell.Run "ntsd -c q -pn " & target,0,True
Wscript.Quit

300000是延时,单位为毫秒,1秒=1000毫秒

target处改为目标程序名。