
Returns a machine readable/computable code for a file time.
FileTimeCode(filename)
(s) filename file name to get the time code from.
(i) file time code.
Use this function to return an 32-bit integer representing the current file time stamp. This number may be compared to other file times to compare ages of files. It is basically the DOS 16-bit date and the DOS 16-bit time in a 32-bit integer. This function returns a valid, comparable time through the year 2044.
This function supports extended-length path names.
a=FileTimeCode("C:\AUTOEXEC.BAT")
b=FileTimeCode("C:\CONFIG.SYS")
If a == b
ans="Same Time"
Else
If a > b
ans = "AutoExec newer than Config"
Else
ans = "AutoExec older than Config"
EndIf
EndIf
Message("Comparing file times", ans)