Maximum Number of Files Returned by FileSearch Object?

P

pbrase

When using the FileSearch Object to enumerate the contents of large
directories (i.e., more than 100K files), the FoundFiles object never
returns more than 65,530 files. This is suspiciously close to the maximum
size of an unsigned integer, even though the Count property of the FoundFiles
object is actually a Long and should therefore be able to contain many more
files. I can find no indication in the documentation that there is a limit
on the number of files the FileSearch object can return. Has anyone
encountered this one before? Am I merely overlooking some detail? Thanks in
advance!
Peter
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top