Sets the date and time that the specified file or directory was created, last accessed, or last modified.
SetFileTimes(cFileName, tCreationTime [, tLastAccessTime [, tLastWriteTime [, bUTCTimes]]])
Parameters
- cFileName
The name of the file for which to change the file times.
Note
- tCreationTime
A datetime value which is stored as the new creation time of the file or directory.
Note
You can also pass NULL for any time parameter if it should not be set.
- tLastAccessTime
A datetime value which is stored as the new last access time of the file or directory.
- tLastWriteTime
A datetime value which is stored as the new last write time of the file or directory.
- bUTCTimes (optional)
default = .F.
If .T. the function assumes that the passed times are in UTC time, otherwise the times are converted to UTC since file times are stored in UTC in the filesystem.
Return Value
Always .T.
See Also
Reference
ADirectoryInfo
ADirEx
ADriveInfo
AFileAttributes
AFileAttributesEx
CancelFileChange
CompareFileTimes
CopyFileEx
DeleteDirectory
DeleteFileEx
FindFileChange
GetFileAttributes
GetFileOwner
GetFileSize
GetFileTimes
GetLongPathName
GetShortPathName
MoveFileEx
SetFileAttributes