Return True/False if Process is Running

Please support our C# advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Aug 2007
Posts: 113
Reputation: scrypt3r is an unknown quantity at this point 
Solved Threads: 2
scrypt3r's Avatar
scrypt3r scrypt3r is offline Offline
Junior Poster

Return True/False if Process is Running

 
0
  #1
Dec 22nd, 2008
Hello, In the app i am developing is made up of two exes, but in order for the first exe to run the second exe must be running, so does anyone Know how to Return True/False if Process is Running?
Yes you can, in fact, haz cheezburgerz
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 2,054
Reputation: ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of ddanbe has much to be proud of 
Solved Threads: 311
ddanbe's Avatar
ddanbe ddanbe is offline Offline
Postaholic

Re: Return True/False if Process is Running

 
0
  #2
Dec 22nd, 2008
You can get all the Processes running with Process.GetProcesses().
You can also use the property Process.Responding to see if a Process is still active.
Last edited by ddanbe; Dec 22nd, 2008 at 4:14 pm.
Today is a gift, that's why it is called "The Present".
Make love, no war. Cave ab homine unius libri.
Danny
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:




Views: 1469 | Replies: 1
Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC