strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
  & "{impersonationLevel=impersonate}===\\" & strComputer & "\root\cimv2")===
Set colProcessList = objWMIService.ExecQuery _
  ("Select * from Win32_Process Where Name = 'iexplore.exe'")
For Each objProcess in colProcessList
  objProcess.Terminate()
Next

MORE

basic.txt · Last modified: 2022/04/16 12:22 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki