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.