I want to display a process's command line (including any arguments) from the command line itself. In other words, I want to show the "Command Line" column in the Task Manager but from a command line. Is this possible?
For example, the output might look something like
C:\java\bin\java.exe -Dhttp.proxyHost=http://localproxy -Dport=8331
Wmic.exe will show you what you are looking for:
Java looks like:
For all available attributes, try:
You can use Microsoft's official Process Explorer. It can do exactly this and has many many more useful features.