System.IOUtils.TFile.SetLastWriteTime

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

class procedure SetLastWriteTime(const Path: string;  const LastWriteTime: TDateTime); inline; static;

C++

static void __fastcall SetLastWriteTime(const System::UnicodeString Path, const System::TDateTime LastWriteTime);

Properties

Type Visibility Source Unit Parent
procedure
function
public
System.IOUtils.pas
System.IOUtils.hpp
System.IOUtils TFile

Description

Changes the last write time of a file.

Use SetLastWriteTime to change the last write time of a file. The following table lists the parameters expected by this method.



Name Meaning

Path

Path of the file for which the last write time is changed.

LastAccessTime

The new last write time that will be applied to the file.



Note: SetLastWriteTime raises an exception if the given path is invalid or the file does not exist.

See Also