IFile.SetLastAccessTime

Syntax

SetLastAccessTime(FileName: String; LastAccessTime: DateTime);

Parameters

Path - path and name of the file, which date and time of the last access to it must be changed.

LastAccessTime - date and time that must be set.

Description

The SetLastAccessTime method changes date and time of the last access to a file.

Example

Sub UserProc;
Begin
    If File.Exists("c:\New_folder\1.txt"Then
        File.SetLastAccessTime("c:\New_folder\1.txt", DateTime.Now);
    End If;
End Sub UserProc;

After executing the example date and time of the last access to the 1.txt file are changed to the current date.

See also:

IFile