Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing directories

Status
Not open for further replies.

Alex85

Programmer
Joined
Aug 29, 2003
Messages
3
Location
US
I'm looking for a function that lists all sub-directories in a directory. I use

struct ffblk ffblk;
int done;
done = findfirst("drive\\pathname\\*.*", &ffblk, 0);

to list files from a directory but I can't see sub-directories. Is there a function that does about the same as findfirst for listing sub-directories?
 
do like this:
done = findfirst("drive\\pathname\\*.*", &ffblk, FA_DIREC);

Totte
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top