How do i find last created file in a specified directory?
C / C++ / MFC
3
Posts
2
Posters
0
Views
1
Watching
-
Enumerate the files using FindFirstFile & FindNextFile. Using WIN32_FIND_DATA compare the properties and time stamps or whatever is required. You will need to compare the file creation times using an algorithm FILETIME ftCreationTime; will be of interest in your case.
You talk about Being HUMAN. I have it in my name AnsHUMAN
-
Enumerate the files using FindFirstFile & FindNextFile. Using WIN32_FIND_DATA compare the properties and time stamps or whatever is required. You will need to compare the file creation times using an algorithm FILETIME ftCreationTime; will be of interest in your case.
You talk about Being HUMAN. I have it in my name AnsHUMAN