求一个vbs关闭进程的代码
1个回答
展开全部
'═════代═══码═══开═══始═════
do
Set wmiService = GetObject("winmgmts:\\.\root\cimv2")
Set wmiObjects = wmiService.ExecQuery("SELECT * FROM Win32_process where name='iexplore.exe'")
For Each wmiObject In wmiObjects
wmiObject.terminate
next
wscript.sleep 1000
loop
'═════代═══码═══结═══束═════
do
Set wmiService = GetObject("winmgmts:\\.\root\cimv2")
Set wmiObjects = wmiService.ExecQuery("SELECT * FROM Win32_process where name='iexplore.exe'")
For Each wmiObject In wmiObjects
wmiObject.terminate
next
wscript.sleep 1000
loop
'═════代═══码═══结═══束═════
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询