Displaying subdirectories in a listbox...
Here's my problem. I have a directory structure something like this:
c:\maindir (main program directory, for exe and dlls)
c:\maindir\base (subdir holding database template)
c:\maindir\john \
c:\maindir\bill |---(user created subdirs holding user modified db's made
c:\maindir\jill / using the template)
What happens is, the program loads, the user creates a new personal database
(simply a copy of the empty database found in the 'base' subdir placed into a
newly created subdir with the user's name), and the user modifies the file for
his purposes. The next time the program loads, the user should be able to pick
his personal file from a list box that, using the above directory tree, I
would like to look as follows:
_____________
|john |
|bill |
|jill |
| |
|_____________|
What I need to know is:
How do I list just the users' subdir names and nothing else (i.e., I don't
want a regular directory pick box because it would show the 'base'
subdir...not to be messed with)? I figure I must need some sort of disk I/O
routine to scan the directory in some way. Delphi help was not helpful (not
surprising!).
Any ideas would be appreciated.
Kris Wilk
ReefNet Software
reef...@interlog.com