• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 549
  • 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

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

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