I am using the function FindFirstFile to pick files from a folder to process. But the files selecting is based on name ,I need to get the files selected based on datetime( means frst come firstout ). Is there any option with FindFirstFile or any other function is there that I can use with c++? please help me...
How to Get The Files datewise using FindFirstFile Function
Collapse
X
-
From MSDN: "The search is performed strictly on the name of the file, not on any attributes such as a date or a file type"
I suggest building a list of all files in the directory and then using GetFileAttribut esEx on each file. This can populate a WIN32_FILE_ATTR IBUTE_DATA structure with everything needed to sort the files how you want (eg. date/time).Comment
Comment