"James" wrote in message news:eO****************@TK2MSFTNGP14.phx.gbl...
: We have a need to search through an entire drive for a specific file name.
How unorganized is this drive?
: The process is currently written with recursive loops through each
directory
: and the Scripting.FileSystemObject. Problem is, it takes forever.
And if your file was the last one searched, wouldn't Search also take a long
time although subsequent searches I believe are cached. So, if you cached
your search in FSO, would you get the same results by first searching your
cache?
: When I
: do a standard file search through Windows Explorer, it typically finds the
: file I'm looking for within 5 seconds.
This particular file or just in general. Define typically.
: Is there another approach to file
: searching, or am I stuck with trying to make this recursive loop somehow
: more efficient?
Perhaps a COMponent that can use APIs might be faster. Without seeing your
code, who knows if your routine can become more efficient?
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center -
http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation -
http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library -
http://msdn.microsoft.com/library/default.asp