Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Folders
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01649758
Message ID:
01649763
Vues:
80
>Is there a command to copy an entire folder to another location?
>I can do a MKDIR and then copy the source folder *.* to the new place but was wondering if there is a better way?
>
>Thank you,
>Rich Murillo

You can use WSH
lcSourceFolder = 'C:\MySourceFolder'
lcTargetFolder = 'C:\MyTargetFolder'
llOverride = .T.
loFSO = Createobject('Scripting.FileSystemObject')
loFSO.CopyFolder(lcSourceFolder, lcTargetFolder, llOverride)
"The five senses obstruct or deform the apprehension of reality."
Jorge L. Borges?

"Premature optimization is the root of all evil in programming."
Donald Knuth, repeating C. A. R. Hoare

"To die for a religion is easier than to live it absolutely"
Jorge L. Borges
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform