Solved

Process Running Check

Posted on 2008-06-24
2
544 Views
Last Modified: 2012-05-05
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
Comment
Question by:grogo21
2 Comments
 
LVL 18

Accepted Solution

by:
philipjonathan earned 150 total points
ID: 21862865
Probably you could search by the process' name:
Process[] processes = Process.GetProcessesByName("whatever.exe");

Open in new window

0
 
LVL 85

Assisted Solution

by:Mike Tomlinson
Mike Tomlinson earned 150 total points
ID: 21862943
* omit the ".exe" part though...just use the executable name, WITHOUT the path and WITHOUT the ".exe".
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question