See
Re: How to make ShellExecute wait for process to complete Message #
966019>I run an external program using ShellExecute that convert some data that I have to process, my problem is how instruct my program to wait until the external program will finish. I can not modify the external program.
>
--sb--