euverve Posted October 27, 2008 Share Posted October 27, 2008 I wanted to convert this vbs to au3.VBS Code below.strComputer = "."Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")Set colProcessList = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'")For Each objProcess in colProcessList objProcess.Terminate()NextThanks to all Link to comment Share on other sites More sharing options...
SoulA Posted October 27, 2008 Share Posted October 27, 2008 $strComputer = "." $objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & $strComputer & "\root\cimv2") $colItems = $objWMIService.ExecQuery ("SELECT * FROM Win32_Process WHERE Name = 'notepad.exe'") For $objItem in $colItems $objItem.Terminate() Next Link to comment Share on other sites More sharing options...
euverve Posted October 27, 2008 Author Share Posted October 27, 2008 Thanks a lot man for the help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now