@FILEAGE[filename[,a|c|w[u]]] : Returns the date and time of the file as an age.

 

Filename must be in quotes if it contains white space or special characters. The optional second parameter selects which date field is returned for files on a VFAT or NTFS drive: a means the last access date, c means the creation date, and w means the last modification (write) date. The default is w.

 

If you append a u to the second argument, @FILEAGE will display the age in UTC.

 

Examples:

 

echo %@fileage["c:\windows\explorer.exe]

129801709001110605

 

echo %@fileage["%comspec",c]

129801709001110605

 

See also: Time Stamps, @AGEDATE and @MAKEAGE.