FindFirstFile/FindNextFile - fastest alternative?

  • Thread starter Thread starter technodwebe
  • Start date Start date
T

technodwebe

If you're trying to create a fast file find function that will work in
both XP-32 and XP-64, what method would you use?
 
Are you handling one file at a time or will a collection of files be
sufficient. If it's one at a time, take a look at the VB legacy "dir"
statement and function. If a collection will suffice, take a look at the
system.io.directory namespace.

Mike Ober.
 
technodwebe said:
If you're trying to create a fast file find function that will work in
both XP-32 and XP-64, what method would you use?

Depending on the exact situation I'd recursively call
'System.IO.Directory.GetFiles'.
 
Thanks! That worked really well. It's a lot slower than the API, but
you use whatcha got :)
 
Back
Top