dos command to print commandline of running pid code example
Example: dos command to print commandline of running pid
You can use Microsoft's official Process Explorer. It can do exactly this and has many many more useful features.
One very useful note, after starting Process Explorer for the first time,
right-click the table header ("Process" | "CPU" | "Private Bytes" | etc.) and
add the "Command Line" column for the info you want to see. Very, very helpful tool,
allows you to see what scripts IT is running on your machine...
Wmic.exe will show you what you are looking for:
wmic path win32_process get name,commandline > commandline.txt
Java looks like:
"C:\Program Files\Java\jre6\bin\jqs.exe" -service -config "C:\Program Files\Java\jre6\lib\deploy\jqs\jqs.conf"