日期:2014-05-17 浏览次数:20774 次
Process process = new Process();
process.StartInfo = new ProcessStartInfo(@"C:\WINDOWS\system32\calc.exe");
process.Start();
process.Kill();//这句话关闭calc.exe程序
Process[] ps = Process.GetProcesses();
foreach (System.Diagnostics.Process p in ps)
{
if (p.ProcessName == "osk")
{
p.Kill();
}
}