Compares the last write times of two files.

CompareFileTimes(cFileName1, cFileName2)

Parameters

cFileName1

Fully qualified path to the first file.

cFileName2

Fully qualified path to the second file.

Return Value

If the last write times are equal: 0
If the last write time of the first file is greater then the second: 1
If the last write time of the first file is smaller then the second: 2

See Also

Reference

ADirectoryInfo
ADirEx
ADriveInfo
AFileAttributes
AFileAttributesEx
CancelFileChange
CopyFileEx
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileAttributes
GetFileOwner
GetFileSize
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes
SetFileTimes

Used WinApi functions

CreateFile
GetFileTime