• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 553
  • Last Modified:

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!
0
grogo21
Asked:
grogo21
2 Solutions
 
philipjonathanCommented:
Probably you could search by the process' name:
Process[] processes = Process.GetProcessesByName("whatever.exe");

Open in new window

0
 
Mike TomlinsonMiddle School Assistant TeacherCommented:
* omit the ".exe" part though...just use the executable name, WITHOUT the path and WITHOUT the ".exe".
0
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.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now