If you want to scan through all the directories on a drive to find a file with a particular name, then the technical details will depend on what version of VB you're using.
In the latest version, for instance, I gather you can use this...
- string[] filenames = System.IO.Directory.GetFiles("path","search pattern", System.IO.SearchOption.AllDirectories)
to generate an array of the file names. However, I think this doesn't tell you where the files are, just their names. Try the search box, you should find plenty of info from prior questions about this topic. In fact, have a look at
this thread from a couple of days ago. I think you'll find the short answer in post #14, but it might be a good idea to read through the thread to get an idea of what's going on.
In VB6, you'd probably need to write a routine which would scan a directory (preferably using
FileSystemObject). For each file it finds, it would do whatever you want. For each directory it finds, it would call itself recursively to scan that directory.
I plan to post a generic VB6 routine in the
HowTo's section fairly soon which will scan the directory structure like this, but it's not there yet.