is there command line syntax in returns image path / location of *.exe on task manager?
i'm using windows xp professional service pack 3, i'm aware of tslist(tasklist) command, running *.exe files.
there no way xp's task manager info (vista on up, however, can show info). other apps, ms/sysinternals' "process explorer" gui can show full path of exe's.
alternatively, built-in process called wmic, uses wmi, can give info in ramesh's answer:
wmic process caption,commandline,processid
or, output file , not command prompt window:
wmic /output:c:\processlist.txt process caption,commandline,processid
note: command prompt need have admin rights launch wmic.
the commands above show output following, includes pid, process name, full path, , switches passed command:
caption commandline processid system idle process 0 helpctr.exe "c:\windows\pchealth\helpctr\binaries\helpctr.exe" -mode hcp://system/sysinfo/msinfo.xml 4852 helpsvc.exe "c:\windows\pchealth\helpctr\binaries\helpsvc.exe" /embedding 1908 cmd.exe "c:\windows\system32\cmd.exe" 4308 cmd.exe "c:\windows\system32\cmd.exe" /k cd c:\ && color 71 & & title admin command prompt - %username%
Comments
Post a Comment