Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtianing a list of files in a given path
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00705974
Message ID:
00706534
Views:
17
Hi Eric,

I found a code snippet at www.freevbcode.com that did the trick. The function uses the FSO.

Al

>I don't know any method that will return an array of files. Many methods contains a kind of files collection from which you can create your array.
>
>Up to last week, I was the guy who told to whom ever want to ear it to use FSO (great sample at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q190882) but I recently found a solution where the old DIR statement was a LOT faster. I was in the need of filtering some folders having each a lot of files and using the DIR statement (which allow wildcards) was a lot faster than FSO (that doesn't allow wildcards).
>
>So my answer now is : depending on your process, you may consider FSO or DIR (but I am still the best fan of FSO!).
>
>>For example, if I wanted an array with all the files in "C:\Source" ...
>>
>>Thanks in advance.
>>
>>Al
Al Williams

Anola MB, CANADA
Previous
Reply
Map
View

Click here to load this message in the networking platform