Click to See Complete Forum and Search --> : VB search


Markmcdade
March 1st, 2000, 04:45 AM
Can anyone give me an idea of how to use VB to search a computer for a particular file, and to save the path to a string?

Thanks.

Lothar Haensler
March 1st, 2000, 06:05 AM
you can use VB's Dir function to (recursively) scan the directories for a file
or
use the FindFirstFile/FindNextFile APIs
or
use the SearchPath API (if you search for executables)
there are probably numerous other methods...