This question already has an answer here:

I can run taskmgr, Display, add column, select "command line", and I will see the complete command line of a process.

For what I check, this command line is quite long, and I can write it out (CTRL-C is ineffective). Is there a better way?

marked as duplicate by Windos, Kevin Panko, DavidPostill, Mokubai Nov 4 '14 at 12:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Mar 21 '12 at 23:40

This question came from our site for professional and enthusiast programmers.


Sysinternals Process Explorer is a much more powerful, feature-filled process manager.

It has, among a plethora of other features, the one you're looking for: Right-click a process, click "Properties", and click the "Image" tab on the popup window. It should have a copy-able "Command line" section

If you don't want to install something new, you can use WMIC. To do this, open a command prompt and type

WMIC /OUTPUT:C:\Desired_location_here.txt PROCESS get Caption,Commandline,Processid

Then, open the text file and the second column should be what you're looking for


Double-click a process in Process Explorer, it will display the command line in a edit-box. You can also use WMI.