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

how i can retrieve HD files? 1

Status
Not open for further replies.

vlitzer

Programmer
Apr 30, 2002
31
AR
what i need is to get a "dir" command so i can retrieve the file names and directories.. how i can do that?
 
CFileFind is one approach.

CFileFind finder;
BOOL filesExist = (BOOL)finder.FindFile("*.*");


while(filesExist)
{
finder.FindNextFile();
you can then use the member funciton to see if it is a directory


if(finder.IsDirectory())
...
else
...
}// end while

Matt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top