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
[ + ] Show comments
Answers (1)
Please log in to answer
Posted by:
bullfighter
13 years ago
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!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.