@CMPTIME
— Compares
timestamps of two files.
Syntax:
%@CMPTIME[
file1,
file2,
which]
file1 | the first file to examine |
file2 | the second file to examine |
which | A , C , or W ; the default is W |
Both files must exist. Directory aliases are supported.
Return values:
-1 | if file1 is older than file2, |
0 | if both files are the same age, |
1 | if file1 is newer than file2. |
if %@cmpfile[%_cmdspec,%_ininame] == 1 echo %_cmdspec is newer than %_ininame!