Process[] workers = Process.GetProcessesByName("worker") foreach (Process worker in workers) { worker.Kill(); worker.WaitForExit(); worker.Dispose(); }
Process.Close();