Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR optimization
Message
From
12/08/2001 23:11:27
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00542818
Message ID:
00542864
Views:
30
>>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform