Solved

Does FSO FileCollection have a limit as far how many files can be processed ?

Posted on 2003-10-21
2
138 Views
Last Modified: 2011-04-14
For example, when I go:

                                    For Each objFile in Folder.Files
                                          whatever
                                    Next

What if I have 100000 files ??
Also, may be there are more economical ( in terms of memory, performance ) ways to handle such situation ?

Thanks in advance
0
Comment
Question by:AlexF777
2 Comments
 
LVL 28

Accepted Solution

by:
vinnyd79 earned 200 total points
ID: 9590667
I don't know if there is a limit but I do know FSO is the slowest method of doing this.The fastest way would be to use API:

http://www.mvps.org/vbnet/index.html?code/fileapi/recursivefiles_minimal.htm
0
 
LVL 16

Assisted Solution

by:Richie_Simonetti
Richie_Simonetti earned 50 total points
ID: 9591625
i agree with vinnyd
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question