Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

If I execute the following command via the command line:-

wmplayer.exe /play "c:\VIDEO_TS\VIDEO_TS.VOB"

Is there any way to get info for the running process from the system that also includes the full command line executed (similar to ps -aux on Linux)?

"tasklist /v" only tells me that "wmplayer" is running, not which file is playing (e.g. c:\VIDEO_TS\VIDEO_TS.VOB)

The sysinternals.com command pslist doesn't appear to give me that info either. Is it possible to do this on Windows?

I'd appreciate any help you can offer me.

Kind Regards,

SteJav

share|improve this question
    
Found the solution (or at least a colleague did!):- WMIC PROCESS does the trick. SteJav –  stejav Jan 31 '11 at 13:35
    
post it as the answer to your question then, so you can mark it as accepted –  DerfK Jan 31 '11 at 14:00
1  
just a warning that processes can manipulate that value: blogs.msdn.com/b/oldnewthing/archive/2009/11/25/9928372.aspx –  dsolimano Jan 31 '11 at 14:14

1 Answer 1

Sysinternals.com procexp (Process Explorer) can also do this. Think of it as task manager on steroids. Double-click on the process name, and the Image tab will show you the command line. Process Explorer will also let you see all files & handles the process has open, and will let you force close individual handles among other useful functions.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.