Question

How do I know if the time limit has expired or the process was terminated by the user?

Process p = Process.Start(this.EmergencyApp, npLang);
p.WaitForExit(this.Timeout);
Was it helpful?

Solution

WaitForExit() returns a boolean:

Return Value
true if the associated process has exited; otherwise, false.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top