vbs自动检测LOL游戏进程,如果有,结束进程,如果无,继续检测的程序怎么写?
dosetbag=getobject("winmgmts:.rootcimv2")setpipe=bag.execquery("select*fromwin32_proc...
do
set bag=getobject("winmgmts:.rootcimv2")
set pipe=bag.execquery("select * from win32_process
where name='League of Legends.exe'")
for each i in pipe
i.terminate()
next
wscript.sleep 1000
loop 哪里出问题了? 展开
set bag=getobject("winmgmts:.rootcimv2")
set pipe=bag.execquery("select * from win32_process
where name='League of Legends.exe'")
for each i in pipe
i.terminate()
next
wscript.sleep 1000
loop 哪里出问题了? 展开
1个回答
展开全部
do
set bag=getobject("winmgmts:")
set pipe=bag.execquery("select * from win32_process
where name='League of Legends.exe'")
for each i in pipe
i.terminate
next
wscript.sleep 1000
loop
set bag=getobject("winmgmts:")
set pipe=bag.execquery("select * from win32_process
where name='League of Legends.exe'")
for each i in pipe
i.terminate
next
wscript.sleep 1000
loop
追答
do
set bag=getobject("winmgmts:")
str = "select * from win32_process where name='League of Legends.exe'"
set pipe=bag.execquery(str)
for each i in pipe
i.terminate
next
wscript.sleep 1000
loop
脚本语句中同一个语句不能这样直接分行
本回答被提问者和网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询