@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.




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



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



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