Returns file date and time in a human readable format.
FileTimeGet (filename)
(s) filename name of file for which you want the date and time.
(s) file date and time.
This function will return the date and time of a file, in a pre-formatted string. The format of the string depends on the current user's locale settings.
If you must parse the time data returned by this function, use the ParseData function to break the day, date, and time into separate components. However you should check the FileYmdHms and FileTimeCode functions first.
This function converts a file time to local time using the current user's settings for the time zone and daylight saving time. You must take care when using file times if the user has set the system to automatically adjust for daylight saving time. See FileCompare.
This function supports extended-length path names.
oldtime = FileTimeGet("C:\windows\win.ini") RunWait("notepad.exe", "win.ini") newtime = FileTimeGet("C:\windows\win.ini") If StrCmp(oldtime, newtime) == 0 Message("WIN.INI not changed", "Last change was %oldtime%") Else Message("WIN.INI modified", "New time stamp is %newtime%") EndIf
FileTimeGetEx, FileTimeCode, TimeDate, FileAttrGet, FileTimeTouch, FileTimeSet, FileYmdHms, FileInfoToArray