GetFileTime( )

Action: Returns the date and time information of a file.
 
Syntax: GetFileTime ("file name", time, mode)
 
Parameters:

File name

Identifies the file for which you want to retrieve the date and time information.

Time

Optional integer parameter indicating which date/time information is returned. Possible values:

0     Return last write time (default)
1     Return creation time
2     Return last access time

Mode

Optional integer parameter indicating if and how the returned time should be adjusted to daylight savings time. Possible values:

0     Adjust time using current daylight savings time (default)
1     Adjust time using daylight savings time of stored time
2     Do not adjust time (return UTC)
 

Returns: A string representing the date and time of the file in the format “YYYY/MM/DD HH:MM:SS”.
 
See Also: CompareFileTimes( ), GetFileAttr( ), GetFileSize( ), GetFileVersion( )
 
Example:

$Result = GetFileTime(@LDRIVE + "\Kix32.exe")