Start And Kill Process : Process : Development Class C# Source Code


Custom Search

C# Source Code » Development Class » Process »

 

Start And Kill Process








    
 

using System;
using System.Diagnostics;

class MyProcessManipulator {
    static void Main(string[] args) {
        Process ieProc = Process.Start("IExplore.exe", "www.intertechtraining.com");

        Console.Write("--> Hit a key to kill {0}...", ieProc.ProcessName);
        try {
            ieProc.Kill();
        } catch { } // In case user already killed it...

    }
}

 
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Development Class
» Process