>Hi
>
>Could anyone advise how to return the total number of folders that exists on a drive(s).
>
>It's for use in a progressbar calculation for a file search .prg
>
>TIA
>
Dennis,
The Scripting.FileSystemObject has a size property for the folders collection, but not a count. The problem is here that it has to scan the entire drive, which is as time consuming as the search routing would be at least. I'd say that an alternative might be to just get the number of folders beneath the starting point of the search and use that. You can do this much more quickly than trying to get the total number of folders.
George
Ubi caritas et amor, deus ibi est