Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying a folder with files
Message
 
 
À
08/08/2007 11:18:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01246787
Message ID:
01246789
Vues:
25
>I need to copy a folder and ALL its contents which may include individual files as well as additional folders to a back up drive. I can copy files with the COPY FILE command. But this will not copy folders.
>Any suggestions?"
>
>Thanks,
>
>Vicki

Vicki,

Try this:
local loFSO
loFSO = CREATEOBJECT("Scripting.FileSystemObject")
loFSO.CopyFolder("c:\ctemp", "c:\ctemp2")
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform