FileSystemObject Memory Question
Greetings,
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!!
Eddie
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!!
Eddie
0 Comments
[ - ] Hide Comments

so that the conversation will remain readable.
Answer this question
or Comment on this question for clarity
Answers
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!
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!
Please log in to comment
Comments