Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy *.*
Message
 
 
À
14/08/2003 09:06:15
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00820092
Message ID:
00820094
Vues:
17
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform