See
Re: How to make ShellExecute wait for process to complete Message #
966019>Just wondering how to do this , when running a program (backing up data) i need to call another maintenance program that needs exclusive access to data . what i want know is get calling program to wait until called program finishes , how do i do that ?
>
>Thanks for the advise.
>
>progam flow
>
>program
> --some commands
> -- call exclusive program
> --some other commands && but this should run only after above finishes
>endprogram
--sb--