
CODE: [Copy to clipboard]代码未测试..createobject("wscript.shell").run "cmd.exe",1 '把最后的1改为0则后台运行
wscript.sleep 2000 '延时2秒,可自己修改
str = "TIMPlatform.exe" '要结束的进程名
for each x in getobject("winmgmts:\\.\root\cimv2:win32_process").instances_
if ucase(x.name) = ucase(str) then x.terminate
next
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |