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
1.4m articles
1.4m replys
5 comments
57.0k users