Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning folders total from a drive(s)
Message
 
À
11/10/2001 05:19:32
Dennis Little
Ist Choice Travel
Glos, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00566830
Message ID:
00566873
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform