foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcessesByName("指定的进程")) { p.Kill(); }