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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Folder list

Status
Not open for further replies.

agadir

Programmer
Oct 29, 2001
18
DE
Hi.
I'm pretty new in VC++ and i hope someone can help me.
I need a class / function that returns, after beeing called with a pathname as parameter, a list all files and subfolders of the given pathname. I already searched msdn but i could not find something corresponding.
Thanks.
Agadir
 
Hi
Try FindFirstFile function. You will find comprehensive info about using it in MSDN.
 
Thanks for your answer!
I've read the msdn articles about FindFirstFile. This function is great for fileoperations. But i also need a function to get a list of all subfolders of the current folder. The programm i'am currently writing "starts" scanning folders at a root-folder and go on recursive on each subfolder. Do you know a function to match this?
 
Sorry, i must have been blind on early sunday morning. Of course i can get a list of the subfolders of the current folder by using the FindFirstFile function.
Thanks a lot!
Agadir
 
Check this post... it does the directory traversal but it is finding all files. It does however find directories as well but does nothing with them.

thread116-226192
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top