Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Fso - open directories and copy contents
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593241
Message ID:
01593331
Vues:
21
thanks hugo
I need to inspect backups to make a repair to a database that contains a fault. So I need to start with the most recent database which contains the least amount of change. The looping process I need therefore needs to be set up so I can inspect the most recent directory first and work backwards to the oldest.

k


>Hi Karen,
>
>To copy a folder and all its contents (including sub-folders) you can just do this:
>
>
>loFSO			= CreateObject('Scripting.FileSystemObject')
>loFolder		= loFSO.GetFolder('c:\temp\myTest')
>loFolder.Copy('c:\temp\myCopiedTest')
>
>
>If you really need to copy them in reverse order (not sure I understand the reason) then you could loop for each folder with adir as Borislav showed.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform