I would like to be able to watch a process until it is terminated, and once non existent display a message, how could this be achieved?
See Question&Answers more detail:osI would like to be able to watch a process until it is terminated, and once non existent display a message, how could this be achieved?
See Question&Answers more detail:osCreate/Attach to the process and then either use WaitForExit()
to block until it has exited, or use the OnExited
Event if you don't wish your application to block while it's waiting for the app to exit.
I heartily recommend reviewing the documentation for Process
- right here