compare two file time
int file_time_compare( LPCSTR lpczFile1, LPCSTR lpczFile2, DWORD dwOption = CREATION_TIME )
1 if lpczFile1 file time is newer than lpczFile2
0 if lpczFile1 file time is not newer than lpczFile2
-1 if lpczFile1 or lpczFile2 is not file
EX1
void file_time_compare_ex1() { LPCSTR lpczFile1= GetAppPath(true) + "origin.ini"; //sepecify a existing file LPCSTR lpczFile2= GetAppPath(true) + "nlsf.ini"; //sepecify a existing file if(file_time_compare(lpczFile1, lpczFile2) > 0) { out_str("File1 is newer than File2"); } }
origin.h