namespace System.Diagnostics;
Process ieProc = Process.Start("IExplore.exe", "www.baidu.com");
Console.WriteLine("-->Hit Enter to kill {0}", ieProc.ProcessName);
Console.ReadLine();
try
{
ieProc.Kill();
}
catch{}
namespace System.Diagnostics;
Process ieProc = Process.Start("IExplore.exe", "www.baidu.com");
Console.WriteLine("-->Hit Enter to kill {0}", ieProc.ProcessName);
Console.ReadLine();
try
{
ieProc.Kill();
}
catch{}
-------------------------------------------------
!!!作者:木由水 http://www.cnblogs.com/muyoushui