David,
Unfortunately same side effect. Say user wanted to launch winword 2 times (main.app dispatches requests to another exe). Second call to word doesn't wait.
PS: Shell* call CreateProcess and they use WaitForSingleObject which is defeated by apps. making DDE brodcast.
Cetin
>Cetin,
>
>>Unfortunately not David. They might be any app. user defined (DOS or Win).
>
>If all you really need to do is let the launched app finish before the VFP code continues you can use the Shell.Run() instead of ShellExecute()
>
>oShell = createobject("WScript.Shell")
>oShell.Run("notepad.exe",SW_SHOW_NORMAL,.T.)