vb.Net: Running Process: how to retrieve the command line it is executing?

  • Thread starter Thread starter News.Individual.NET
  • Start date Start date
N

News.Individual.NET

Hi everyone,

It is easy enough to get all sort of info on a running process but is it
possible - as it is with WMI -
to get the whole command line, that is the executable and whatever file it
may have been passed
as an argument?

For Each proc As Process In pList
myProcessModule = proc.MainModule
DataGridView1.Rows.Add(proc.Id, proc.ProcessName, proc.Id,
myProcessModule.FileName)
Next

Thanks for your help

Joseph
 
Back
Top