Hi Chaim,
have two text boxes in my backup form, text1 is the source data and text2 is the target data.
>I use with the following syntax:
>cd(text2.value)
>delete file *.* &&delete old backupWhat if user types wrong directory in text2 textbox? It could be a disaster because all files in that directry will be deleted.
(text1.value)
>copy file *.* to (text2.value)&© real data to backup
>I get error message (('cannot create file!')) in the last line of the code.
Try
COPY FILE *.* TO (JUSTPATH(text2.value) + "\*.*")
--sb--