VB.Net: Kill Processes by name

baabaa_nl used Ask the Experts™
Hi Experts,

I need to kill processes by the name in the process list in the task manager.

Thanks in advance.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Glanced up at my screen and thought I had coded the Matrix...  Turns out, I just fell asleep on the keyboard.
Most Valuable Expert 2011
Top Expert 2015
foreach (System.Diagnostics.Process p in System.Diagnostics.Process.GetProcessesByName("process_name_without_extension"))

Open in new window

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial