本帖最后由 pcl_test 于 2016-9-3 21:02 编辑
郁闷,下午所有的关闭程序的代码都不行了!
比如:- do
- on error resume next
- set bag=getobject("winmgmts:\\.\root\cimv2")
- set pipe=bag.execquery("select * from win32_process where name='QQ.exe'")
- For Each id In pipe
- id.terminate
- Next
- wscript.sleep 500
- loop
复制代码 上午都正常能禁止QQ程序运行的,下午却不起作用了!! |