Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fso - open directories and copy contents
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593241
Message ID:
01593331
Views:
22
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.
Previous
Reply
Map
View

Click here to load this message in the networking platform