>Hi...
>I am trying to make a backUp of the database that is in use. I tried to make a copy of the tables and database files in another directory. A button in a form has this:
>
>sArchivosACopiar="\\internet\c\archivos de programa\casa\progs2002\sinfodbc\*.*"
>
>sADonde="\\internet\c\archivos de programa\casa\progs2002\CopiaDatos\"
>
>RUN Copy &sArchivosACopiar &sADonde
>
>But when I tried to do this an error message appears:
>"Fallo al ejecutar el comando RUN!"
>
>what am I doing wrong?
>Thanks
Expand the entire command, including the RUN:
lcCommand = "RUN COPY " + sArchivosACopiar + space(1) + sAdonde
&lcCommand
See also Download #
10009.
Saludos, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)