using System; using System.Diagnostics; class MainClass { static void Main(string[] args) { Process[] runningProcs = Process.GetProcesses("."); foreach(Process p in runningProcs) { string info = string.Format("-> PID: {0}\tName: {1}",p.Id, p.ProcessName); Console.WriteLine(info); } } }