GetFileTime

Reads the time and date the file was last modified.

Function Group Execution Windows Embedded Thin Client
GetFileTime File Synchronous Supported Supported Supported

Syntax

GetFileTime(strFileName,numFormat)
strFileName
The file path and name of the file to be read.
numFormat
A numeric flag specifiying the format of the returned data:
  • 0: Returns the date and time from the file.
  • 1: Returns only the file date.
  • 2: Returns only the file time.

Returned value

Returns the date and or time the file was last modified.

Examples

Tag Name Expression
Tag GetFileTime( "C:\Readme.txt" )