System Programing

 

Saturday, May 30, 2009

Get list of running processes

// Get list of running processes

Console.WriteLine("ID:\tProcess name:");
Console.WriteLine("--\t------------");
foreach (System.Diagnostics.Process process in System.Diagnostics.Process.GetProcesses())
Console.WriteLine("{0}\t{1}", process.Id, process.ProcessName);

No comments:

Post a Comment

All Menu