How permanent is WaitForExit(); ? I mean is there anything/ an
alternative one can do to break the wait otherwise I will run my thread
in a separate function, and control it by global variables.
Reason - a CMD.EXE thread, with a console application running, which we
need to cancel out of prior to the thread running its course.
Here is what we have:
ProcessStartInfo psi = new
ProcessStartInfo("CMD.EXE",query);
psi.UseShellExecute = useShellExec;
psi.RedirectStandardOutput = stdout;
psi.CreateNoWindow = noWindow;
hbProc = new Process();
hbProc = Process.Start(psi);
hbProc.WaitForExit();
Thanks,
Alistair.