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

Get files and sub directories

Status
Not open for further replies.

Skute

Programmer
Joined
Jul 21, 2003
Messages
272
Location
GB
Hi,

If have got a path to a directory by using SHBrowseForFolder + SHGetPathFromIDList. What i now want todo is scan through a list of files of certain file type, including all sub directories.

What functions should i be looking at?

BTW: This is non MFC.

Thanks
 
use FindFirstFile/FindNextFile.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
is there a quick way of getting the amount of files + sub directories beneath that path?

i would like to implement a progress bar as im scanning thru the files.
 
I think no. It is only dinamical information.

Ion Filipski
1c.bmp

ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
To get close to that, search only directories first and configure the progress bar by the number of directories. Then scan the directories for the files showing the progress.

-pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top