FindFirstFileEx

A

A Webster

I have an Access 97 database running on windows 2000. What the database
does is recursively calls a fuction which basically scans the hard
drive or network drive looking for a particular file type. At the
moment the code uses the API FindFirstFile to find all the sub
directories in a given directory. This is done by cycling through the
returned results one by one which includes every file in that
directory. Then the function does another search on same directory for
the specified file type. This seems a little tedious to me especially
cause there could be about 2500 files in a directory and only 2 sub
directories and the code has to cycle through every single one of
them.

Does anybody know how to use the function FindFirstFileEx. I want to be
able to only return the sub directories in the first part of the
function. I can't seem to find any examples for it in VB on the net,
only in C and C++, and I know nothing about C and therefore cannot
translate it. I have found the declaration in VB but that is about it.


Any help in this matter would be greatly appreciated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top