Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

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

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

    
typo, I can write it, not copy it –  k3c Mar 21 '12 at 22:40
    
For what it's worth: blogs.msdn.com/b/oldnewthing/archive/2009/11/25/9928372.aspx –  MrGomez Mar 21 '12 at 22:44

2 Answers 2

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

share|improve this answer
    
Thanks a lot, both answers work fine. –  k3c Mar 21 '12 at 23:14

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.