Get all Processes : Process : Development C# Examples


C# Examples » Development » Process »

 

Get all Processes









    
using  System;
using  System.Diagnostics;

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




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Process