vbs检测进程
1个回答
展开全部
set shell=createobject("wscript.shell")
set wshshell=wscript.createobject("wscript.shell")
set http=createobject("Microsoft.XMLHTTP")
M=0
for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_
if ps.name ="powerRemind.exe" then
M=M+1
wshshell.popup "powerRemind 已启动",1,"提示",4144
'exit for
WScript.Quit
end if
next
if M=0 then
a=5
wshshell.popup "a=" & a & "powerRemind 未启动",1,"提示",4144
end if
set wshshell=wscript.createobject("wscript.shell")
set http=createobject("Microsoft.XMLHTTP")
M=0
for each ps in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_
if ps.name ="powerRemind.exe" then
M=M+1
wshshell.popup "powerRemind 已启动",1,"提示",4144
'exit for
WScript.Quit
end if
next
if M=0 then
a=5
wshshell.popup "a=" & a & "powerRemind 未启动",1,"提示",4144
end if
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |