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!

Directory Handeling 2

Status
Not open for further replies.

mmfried

Programmer
Sep 17, 2003
33
IL
Hi All,

- how do I get All files in a directory?

- Is there anything like the unix opendir()?

- How can I find Out if a directory exist, can I just try to open it (i.e. open, fopen, fstream, etc.)?

Thanks

mmfried
 
GetFileAttributes - check the path
SetCurrentDirectory - change directory
FindFirstFile/FindNextFile - list directory

Ion Filipski
1c.bmp
 
After using FindFirstFile/FindNextFile, use FindClose to close the specific search handle.

You can also use SearchPath function to search for a specified file in a specified path.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top