using System;
using System.Diagnostics;
class MainClass
{
static void Main(string[] args)
{
Console.Write("--> Hit a key to launch IE");
Console.ReadLine();
// Launch IE.
Process ieProc = Process.Start("IExplore.exe", "www.navioo.com");
Console.Write("--> Hit a key to kill {0}...", ieProc.ProcessName);
Console.ReadLine();
try
{
ieProc.Kill();
}
catch{} // In case user already killed it...
}
}
Output
--> Hit a key to launch IE
--> Hit a key to kill IEXPLORE...