Process Running Check

Hello, how can i check to see if a process is currently running on my localsystem?  I suppose I have to use GetProcessById().  A code example would be great!  Thanks!
Who is Participating?
philipjonathanConnect With a Mentor Commented:
Probably you could search by the process' name:
Process[] processes = Process.GetProcessesByName("whatever.exe");

Open in new window

Mike TomlinsonConnect With a Mentor Middle School Assistant TeacherCommented:
* omit the ".exe" part though...just use the executable name, WITHOUT the path and WITHOUT the ".exe".
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.