There are two samples included in this ZIP. 


The first, GetDirs, demonstrates how to find all subdirectories that
exist under any specified directory, including searching an entire hard
drive for ALL directories.  The program prompts for a directory and then
searches the hard drive for all subdirectories that exist underneath the 
one specified and lists them in a list box.  No API functions are required,
but the program does rely heavily on recursion.

The second example takes GetDirs one step further by searching ALL
hard drives for any specified filespec and lists the results, similiar 
to the Search... menu item in File Manager, except better because FM only
searches 1 drive.  The SendMessage() API function is used in this to list 
the current directory's contents to an invisible list box.

The second example, FileFind, is based on code written by Simon Bernstein.  
Actually, a lot of it IS his code.  So is GetDirs, since it is based on 
FileFind. :)  For anybody who wants Simon's original program, which includes 
the source code, it can be found in the MS Software Library.  The filename 
is ZAP10.EXE.  You can read more about ZAP10.EXE in Article ID: Q120074 of 
the VB Knowledge Base.

You'll probably be surprised at how fast the routines actually are.  I was.

Any questions can be sent to VDG Mike on America Online.  Hope you find
this useful.

Mike Davis

Visual Developers Group
vdgmike@aol.com
