快捷键或热键可中止VBScript

时间:2019-02-18 03:52:52

标签: abort

taskKill = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & taskKill & "\root\cimv2")

Set processlistFull= objWMIService.ExecQuery _
("Select * from Win32_Process Where name = 'wscript.exe'")

For Each killPro In processlistFull
killPro.Terminate()

下一步

如何在现有脚本中添加此脚本并调用此函数以使用热键终止“ wscript.exe”

0 个答案:

没有答案