jdelaney Posted January 25, 2013 Share Posted January 25, 2013 (edited) I'm attempting to get the 'location' that a process is running from. Any ideas?Task manager -> Processes tab -> right click a process -> properties -> LocationThanksfound this, but no location (tried .location, no go):strComputer = "." Set objWMIService = GetObject("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcessList = objWMIService.ExecQuery _ ("SELECT * FROM Win32_Process") For Each objProcess in colProcessList colProperties = objProcess.GetOwner(strNameOfUser,strUserDomain) Wscript.Echo "Process " & objProcess.Name & " is owned by " _ & strUserDomain & "\" & strNameOfUser & "." & "location=" & objProcess.Location Nextthink i got it: string ExecutablePath;http://msdn.microsoft.com/en-us/library/windows/desktop/aa394372(v=vs.85).aspx Edited January 25, 2013 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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