|
Answer» Hello...
I just want to ask about qprocess or tasklist : display output like this : ---------------------------------------------------------------------------- USERNAME SESSIONNAME ID PID IMAGE Fen_Li CONSOLE 0 1412 explorer.exe Fen_Li console 0 1300 firefox.exe Fen_Li console 0 1760 cmd.exe Fen_Li console 0 1472 qprocess.exe ----------------------------------------------------------------------------- How to GET fullpath of (ex: firefox.exe) ?? I thing use %%~fI but does't WORK.. thnx b4don't know about tasklist but you can get fullpath using this Code: [Select]strComputer = "." Set objWMIService = GETOBJECT("winmgmts:" _ & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2") Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process") For Each objProcess in colProcessList WScript.Echo objProcess.Description &"->" & objProcess.ExecutablePath Next
|