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

trying to write a file finder.

Status
Not open for further replies.

john829

Programmer
Sep 14, 1999
10
US
I am new to visual C++ and would like to write a file finder. somthing that will search my hard drive and list all the files that I specify. Are there built in functions or do I need to write some kind tree traversal program to do it?
 
You can use the clase CFileFind in the following way,<br>
where szPatternPath can be anything eg : *.bmp,abc.txt etc<br>
CFileFind ff;<br>
BOOL bFF;<br>
bFF = ff.FindFile ( szPatternPath );<br>
while ( bFF )<br>
{<br>
bFF = ff.FindNextFile ();<br>
}<br>
<br>
try this out, All the Best<br>
SUN :)<br>
<br>

 
Thanx to Sun , the same answer I had in my mind<br>Siddhartha Singh<br><A HREF="mailto:ssingh@aztecsoft.com">ssingh@aztecsoft.com</A><br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top