Listing processes on a remote machine : Process : Development C# Examples


C# Examples » Development » Process »

 

Listing processes on a remote machine









    
using  System;
using  System.Collections.Generic;
using  System.Diagnostics;
using  System.IO;
using  System.Reflection;
using  System.Runtime;
using  System.Runtime.CompilerServices;
using  System.Security;

public  class  MainClass
{
        public  static  void  Main()
        {
                Process[]  allProcs  =  Process.GetProcesses("RemoteMachineOnYourNerwork");
                foreach  (Process  p  in  allProcs)  
                      Console.WriteLine("    ->  {0}  -  {1}",  p.ProcessName,  p.PeakWorkingSet64);

        }
}
    
   
  
   




HTML code for linking to this page:

Follow Navioo On Twitter

C# Examples

 Navioo Development
» Process