Display complete command line (including arguments) for Windows process

Solution 1:

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"

For all available attributes, try:

wmic path win32_process get /format:list

Solution 2:

You can use Microsoft's official Process Explorer. It can do exactly this and has many many more useful features.