Hi all,

I have a problem get the "command line" of a process in C# for some processes
(ie, tomcat5.exe). I am using Win2003.

I can use wmci as in: wmic process where name="tomcat5.e xe" get processId, commandLine.

This gives the process id and the command line.

Now below C# code does not give me the command line.

Code:
using System;
using System.Management;
...