Quick Answer:
foreach (var process in Process.GetProcessesByName("whatever"))
{
process.Kill();
}
(leave off .exe from process name)
More Related Contents:
- What is the best choice for .NET inter-process communication? [closed]
- How can I run another application within a panel of my C# program?
- How to determine programmatically whether a particular process is 32-bit or 64-bit
- How to pass parameters to another process in c#
- process.start() arguments
- How to read command line arguments of another process in C#?
- Get Live output from Process
- How to read to end process output asynchronously in C#?
- Get return value from process
- Why is this process crashing as soon as it is launched?
- How can I tell if my process is running as Administrator?
- How to execute process on remote machine, in C#
- Capturing process output via OutputDataReceived event
- Foo.cmd won’t output lines in process (on website)
- Process.Close() is not terminating created process,c#
- C# Process.MainWindowHandle always returns IntPtr Zero
- Error in Process.Start() — The system cannot find the file specified
- C# – WCF – inter-process communication
- How to create a Process that outlives its parent
- How to use [DllImport(“”)] in C#?
- Windows Forms application like Google Chrome with multiple processes
- C# Only part of a ReadProcessMemory or WriteProcessMemory request was completed during Process.Kill()
- Access denied while getting process path
- Image file copy, is being used by another process
- C# process.start, how do I know if the process ended?
- To run cmd as administrator along with command?
- How to send keys instead of characters to a process?
- PostMessage WM_KEYDOWN send multiply keys?
- Redirect process output C#
- How to kill a process without getting a “process has exited” exception?