Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning folders total from a drive(s)
Message
 
To
11/10/2001 05:19:32
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00566830
Message ID:
00566873
Views:
16
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform