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

  • Thread starter News.Individual.NET
  • 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top