Hannes,
I just added a Function VFP:-General Coding Issues FAQ -> Utilities & usefull functions area for you. Name is "DBF of Volumes/ Directories / Files"
After Tek-Tips approves the code and it is available to you.
Go do this. Cut the code from the Tek-tip FAQ Area
Start VFP
in the command window
Set Default to ? ( Select the directory you want the list of DBF's)
Modi comm dir_dbf (Paste code into program & save it)
=dir_dbf(.t. , .f. , .f. , "C:\")
use c:\files exclu
delete all for ".DBF" $ UPPER(NAME)=.f.
pack
browse
There is your list of only dbf files in the directory you wanted.
You can use the same function to get a list of directories
or a list of all the drive letters you have mapped on the computer.
if you call it as
=dir_dbf(.t. , .t. , .t., "C:\")
on C:\ there will be 3 files
FILES.DBF
DIRECTRY.DBF
DRIVES.DBF
they will hold the info you requested from the directory you were in.
Enjoy.