I don't know if this question was already asked, but I could not find anything on it, so please lead me in the right direction if you can find something.
Basically, I would like to add an event to my current C# program to be raised when another specified process ("example.exe") exits. Is that possible?
If that is not possible, is there, instead, a way to raise an event when a specified process by direct path ("C:somefolderpaths...example.exe") exits?
To add: My program does NOT start the process example.exe.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…