In C#, I can start a process with
process.start(program.exe);
How do I tell if the program is still running, or if it closed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
MSDN System.Diagnostics.Process
If you want to know right now, you can check the
HasExitedproperty.If it’s a quick process, just wait for it.
If you’re starting one up in the background, subscribe to the Exited event after setting EnableRaisingEvents to true.