求助,用按键精灵怎么结束一个进程
2个回答
展开全部
call 结束进程("baidu.exe")
Sub 结束进程(映像名称)
Dim strComputer, objWMIService, colProcessList, objProcess
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process Where Name = '" & 映像名称 & "'")
For Each objProcess in colProcessList
objProcess.Terminate
Next
End Sub
或者命令库
Call Lib.系统.结束进程(映像名称)
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询