关注VBS公众号
随时掌握最新VBS技术

关闭程序的vbs脚本('Taskmgr.exe'可更改)

ID:9 / 打印

set bag1=getobject("winmgmts:\\.\root\cimv2")

set pipe1=bag1.execquery("select * from win32_process where name='Taskmgr.exe'")

For each i in pipe1

i.terminate()

next


举例脚本(可直接复制至你的vbs文件里)


set bag1=getobject("winmgmts:\\.\root\cimv2")

set pipe1=bag1.execquery("select * from win32_process where name='Taskmgr.exe'")

For each i in pipe1

i.terminate()

next


上一篇: 打开程序的vbs脚本(calc.exe是计算器)
下一篇: 关机的vbs脚本

作者:admin @ ZBLOG   2024-10-27

VBS脚本网 vbs 在线。

vbs.com.cn

对此文章有疑问?请提交在 vbs留言 或通过 vbs工具 查找您的VBS信息。

与本文相关文章