@CMPTIME — Compares timestamps of two files.

Syntax:
%@CMPTIME[file1,file2,which]

file1the first file to examine
file2the second file to examine
whichA, C, or W; the default is W

Both files must exist. Directory aliases are supported.

Return values:

-1if file1 is older than file2,
0if both files are the same age,
1if file1 is newer than file2.

if %@cmpfile[%_cmdspec,%_ininame] == 1 echo %_cmdspec is newer than %_ininame!