limit the number of files filesearch looks through
You do know that any file search mechanism is not guaranteed to return files
in any specific order.
As such what to hope to learn from the "first few files" ?
If you really want to find the 30 files with the latest LastModified date,
you will of course have to scan all files in that folder in order to
determine which ARE the oldest.
If you do not do it in code, whatever "helper" you choose will still have do
it and only report the results to you.
If you are looking for speed, the API FindFirstFile/FindNextFile are your
best bet.
NickHK
wrote in message
oups.com...
Hey all,
I'm trying to use filesearch to look in a directory at certain files
and open them up. I'm getting success on my initial trial runs, but
when I go to looking in a folder across a Windows Network, it slows the
whole process down immensly. This folder can have over 1000 files, and
its just taking too long to get any good results. I really only want
to look at the past few files if possible. Is there a way to limit the
search to only the last 30 or so files that have been created? I've
tried to use the LastModified property and set it to
msoLastModifiedThisMonth, but it doesn't neccesarily make it any faster
of a process. Any thoughts?
Jeremy Heersink
|