日期:2014-05-18 浏览次数:20908 次
Process[] processes = Process.GetProcesses();//获取所有进程信息 for (int i = 0; i < processes.Length; i++) { if (processes[i].ProcessName.ToLower() == "explorer") { try { processes[i].Kill(); return; } catch (Exception) { Console.WriteLine("进程访问失败!"); } } }