[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'sysutils' (#rtl)

FileSetDate

Set the date of a file.

Declaration

Source position: line 0

function FileSetDate(

  Handle: LongInt;

  Age: LongInt

):LongInt;

function FileSetDate(

  const FileName: String;

  Age: LongInt

):LongInt;

Description

FileSetDate sets the file date of the file with handle Handle to Age, where Age is a DOS date-and-time stamp value.

The function returns zero if successfull. (not on unixes, where it is not implemented)

Errors

On Unix, -1 is always returned, since this is impossible to implement. On Windows and DOS, a negative error code is returned.