set Ws = WScript.CreateObject("WScript.Shell") count=0 for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_ if ps.name="wscript.exe" then count=count+1 next if count > 2 then wscript.quit i=1 for i = 1 to 3 '3为绑定的次数 i=i-1 '永远也不会是3,所以一直循环 WScript.Sleep(1000*60*0.1) '每0.