Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy *.*
Message
 
 
To
14/08/2003 09:06:15
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00820092
Message ID:
00820094
Views:
16
This message has been marked as the solution to the initial question of the thread.
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 backup


What 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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform