Start And Kill Process : Process « Development Class « C# / C Sharp
- C# / C Sharp
- 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...
}
}
Related examples in the same category