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!

Find the number of all files and subfoders contained by a folder

Status
Not open for further replies.

Toranaga

Programmer
Nov 14, 2002
11
RO
I'm working on a program in which I need to use a function to show me how many files and subfolders a certain folder contains. You know, just like in Explorer when you click Properties on a folder: it contains X files, Y folders, but I couldn't find anything which I could use.

Can anyone provide some help for me ?
Thanks in advance.



 
Hi,
try FindFirstFile-function or CFindFile (MFC).
Hope this helps!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top