[Windows] List complete command-line arguments used for each process

Hello,
I found a magic trick for windows… it use WMIC.

Using WMIC, it is possible to list out all the running processes and their parameters!

The following command-line outputs the list of running processes (with the complete command-line arguments used for each process) to a text file:

[code lang=”bash” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]WMIC /OUTPUT:C:\ProcessList.txt path win32_process get Caption,Processid,Commandline[/code]

Yeah!!!

I was interested to this line in particulary…

I downloaded a tool that convert mp3, avi, etc… in various format (it use ffmpeg background utility), but I want to know the correct parameters used in ffmped to convert avi in IPOD compatible video!
After 1 second I give that magic string!

[code lang=”bash” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]ffmpeg.exe -y -i “DEC_M6_U1_L3_R.avi” […] “DEC_M6_U1_L3_R.mp4″[/code]

I’m happy!

Rif: albertopasca.it

 

Alberto Pasca

Software engineer @ Pirelli & C. S.p.A. with a strong passion for mobile  development, security, and connected things.