@FILETIME[filename[,[a|c|w[u]][,s]]] : Returns the time of day a file was last modified, in hh:mm format. Filename must be in quotes if it contains white space or special characters. The optional second parameter selects which time field is returned for files on an LFN drive: a means the last access time, c means the creation time, and w means the last modification (write) time, which is the default. Times are normally returned with hours and minutes only. To retrieve seconds as well, add s as the optional third parameter. On non-NTFS drives, the last access time is always returned as 00:00, and without a seconds field (see Time  Stamp for additional details).

 

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

 

Examples:

 

echo %@filetime["D:\my path\myfile.exe"]

16:40

 

echo %@filetime["%comspec",c,s]

11:01:40

 

See also: @FILEDATE, @FILEAGE.