Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ADIR optimization
Message
De
12/08/2001 23:11:27
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00542818
Message ID:
00542864
Vues:
27
>>>You have to loop through Files collection, e.g.
>>>
>>>for each oFile in oFolder.Files
>>>   ? oFile.Name
>>>   ? oFile.Type
>>>next
>>
>>Ok, good to know. Thanks
>
>Yes, unfortunately there is no easy way to retrieve the info about specific file extension in one command. Have you compared Larry's suggestion with this one in terms of speed? I'm running something through PCAnywhere now, so I can not test, but would be interested to see your results.

Both returns result in a flash. After second verification, for that one, I only need count from the directory and not on a scope. So, as long as I only need the count without the scope, I'll use the FileSystemObject. If I ever need a scope, I'll switch to Larry's suggestion.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform