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?
Create/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.
WaitForExit()
OnExited
I heartily recommend reviewing the documentation for Process - right here
Process
2.1m questions
2.1m answers
60 comments
57.0k users