That is the preferred solution.
thanks for the quick response. You are correct, I can work with that, it's just that I'm running it from a threaded Delphi application that poles the command output pipe, so with and it not passing anything back I'm not detecting the exit.
I think I'll have to improve my monitoring of the pipe.
-- Shachar Shemesh