I've written a file copy script. The script, which is complete, works really well. It basically runs through each file using FileSystemObject and sorts the files based on date, into a directory based on the week it was created (1-52).

However, the initial time I run the script it will run against 2 million files (or more). Does FileSystemObject load all the file names into memory and then look at them or does it look at them one at a time? I'm concerned the server will not be able to handle loading that many files into memory.

Thank you in advance!!
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


23 views and no replies, perhaps I did a poor job of explaining my concern.

My simplified question is this, when FSO looks at the contents of a directory does it load the entire list of files into memory? And if so, will manipulating a folder with 2 million plus files be a problem?

Any assistance is greatly appreciated!
Answered 10/03/2011 by: bullfighter
Yellow Belt

Please log in to comment