使用FindFirstFile()和FindNextFile()遍历文件能不能按文件名的降序进行?谢谢了先。

解决方案 »

  1.   

    The order in which this function returns the file names is dependent on the file system type. With the NTFS file system and CDFS file systems, the names are returned in alphabetical order. With FAT file systems, the names are returned in the order the files were written to the disk, which may or may not be in alphabetical order.                                      -----摘自msdn
    只有找到后,自己排序吧