>Dear everybody,
>In my program, I write a backup/restore routine which utilize winrar as backup program.
>
>In my segment:
>
>:
>:
>run /n1 winrar a -o+ bb.rar .
>wait window "OKAY" nowait
>:
>:
>
>However, The program switch to next line, before the first line run completed.
>How can I program to do that the wait window preform after the run command completely done.
>
>
>Yours faithfully,
>
>SO
If the Windows Script Host is installed, the WScript.Shell object's run method can do this.
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run("winrar.exe a -o+ bb.rar", 1, .T.)
WAIT WINDOW "OKAY" NOWAIT
George
Ubi caritas et amor, deus ibi est