IFile.SetLastAccessTime

Syntax

SetLastAccessTime(FileName: String; LastAccessTime: DateTime);

Parameters

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

LastAccessTime - date and time that should be set.

Description

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

Example

Sub Main;

Begin

If File.Exists("c:\New_folder\1.txt") Then

File.SetLastAccessTime("c:\New_folder\1.txt", DateTime.Now);

End If;

End Sub Main;

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

See also:

IFile