Question check for running process

helixpoint

New member
Joined
Mar 26, 2010
Messages
1
Programming Experience
Beginner
I need to ask the user before I kill all the excel processes open. How do I check to see if there are excel open?
 
Your going to have to call Process.GetProcessesByName to terminate them anyway. You call that first and check whether the array is empty or not.

Also, for apps with a UI, make sure you call CloseMainWindow to give the app a chance to close normally before you call Kill.
 
Back
Top