Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get a collection of sub folders from a parent folder
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00288982
Message ID:
00289052
Vues:
34
>Thanks for the kind words. I think you'll find it a fairly fast routine. I ran some tests (in the development environment) at home using a P200 (pity me< g >) with 64 Mb and a 13 gig hard drive with 3,700+ directories. Took a shade over 30 seconds to recurse the entire tree. I seem to recall, however, that Cetin Basoz did a similar test using the FileSystemObject and that it was marginally faster. I don't, however, remember all the details.

I'm running it on a PII 300 notebook on NT 4 WS SP5, so far, it happens in the blink of an eye pointing at a typical folder structure (less than 15 folders in the tree). I did run it agains the C:\ drive for grins and it returned 1289 folders in 17 seconds, very impressive. My first thought was to use FileSystemObject, I believe it has a Folders collection. But FSO is a beast at times and I don't have much time to get this done. Your code saved me several hours, I'll hoist my next Guiness to ya, even better, I'll buy you a round at the next DevCon.
Oct 31 = Dec 25
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform