Delphi: file attributes: read creation and last access datesPosted by *DClub* Stefan Loeners on September 07, 2003 at 22:57:50:
How would I retrieve the CREATION date and the LAST ACCESS date of a given file? function GetFileDateTime(FileName: string): TDateTime;
var
intFileAge: LongInt;
begin
intFileAge := FileAge(FileName);
if intFileAge = -1 then
Result := 0
else
Result := FileDateToDateTime(intFileAge)
end; Thank you.
[ DelphiLand: free Delphi source code, tips, tutorials ] |
|