#inlcude<io.h> struct _finddata_t FileList; long hFile=0; hFile = _findfirst(path, &FileList); if(-1 == hFile) { return ; } do { //FileList.name } while(0 == _findnext(hFile, &FileList)); _findclose(hFile);