关闭操作系统的进程:

foreach (System.Diagnostics.Process pro in System.Diagnostics.Process.GetProcesses())

  {
      Console.WriteLine(pro.ProcessName);
       if (pro.ProcessName.Equals(processName) )
        {
              pro.Kill();
        }
}
posted on 2009-03-20 22:00  墨客剑谍  阅读(1790)  评论(1编辑  收藏  举报