>>>>Take a look at my FAQ entry on using the CopyFile() API call rather than the DOS COPY command or VFP COPY FILE command. You can also look at using my API_APPRUN class and XCOPY (COPY is an internal command, so running it without a command processor is troublesome) to run DOS commands without a DOS window. You can download API_APPRUN from here on UT.
>
>
>Hola Ed
>
>I’ve used your APPI_RUN class to run a DELTREE or a XCOPY command. However, these commands run and complete their tasks successfully without been detected when they finish, even included into a .Bat file. Surely I’m missing something, on the way the LaunchAppAndWait method should be used, since it never returns from it.
>
Go into Windows Explorer, find the executable, right click, select properties and in the program tab, set close on exit.
>I would appreciate any tips.
>
>Thanks in advance
>
>Oscar Corte