- Moderator
- #1
I have several THOUSANDS of files that I need to see if files exist on.
If I do a fso.FileExists, the script times out looking through the files.
So I thought maybe if I loaded the whole file list into an array, then sifted through that for hits, it would work better.
Still times out.
Even the following times out:
... so any thoughts about how I can get a HUGE file list loaded up, or a faster method besides the FileSystemObject FileExists routine to find the files I'm looking for?
Once again, it's an ASP page, looking to see if a set of files exist on a remote share.
TIA!
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg
If I do a fso.FileExists, the script times out looking through the files.
So I thought maybe if I loaded the whole file list into an array, then sifted through that for hits, it would work better.
Still times out.
Even the following times out:
Code:
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFiles = objFSO.GetFolder("\\10.0.0.9\COC\COC\")
Set fileList = objFiles.Files
For Each i in fileList
Response.Write i.Name & "<br>"
Next
... so any thoughts about how I can get a HUGE file list loaded up, or a faster method besides the FileSystemObject FileExists routine to find the files I'm looking for?
Once again, it's an ASP page, looking to see if a set of files exist on a remote share.
TIA!
Just my 2¢
"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."
--Greg