System::GetFileTime
System::GetFileTime will set the end of the file at the specified position.
System::GetFileTime( OSHandle FileHandle : UTCTime CreationTime, UTCTime LastAccessTime, UTCTime LastWriteTime );
Parameters
FileHandle | From previous call to System::CreateFile. |
CreationTime | the timestamp of when the file is created. |
LastAccessTime | the timestamp of when the file was last accessed/read. |
LastWriteTime | the timestamp of when the file was last written to. |
Return Values
The error.errorCode value will be set to the underlining windows error message code and the error.errorString will have a detailed description of the error.
Remarks
Example Use
- TScript
main(){ variable fileHandle, lastWrite; System::CreateFile(u"MyFile.txt", System::OPEN_EXISTING|System::READ_ONLY:fileHandle); System::GetFileTime(fileHandle,,,lastWrite); System::MessageBox(u"The last time the file was written to" + lastWrite.ToString()); }
Since
TScript Version 1.6
Also See
System::CreateFileListen All
Comments (0)