SetLastAccessTime(FileName: String; LastAccessTime: DateTime);
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.
The SetLastAccessTime method changes date and time of the last access to a file.
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 the example date and time of the last access to the 1.txt file are changed to the current date.
See also: