Autor Beitrag
Terminator
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34


D6 Prof
BeitragVerfasst: Di 16.11.04 15:23 
Hallo,
wie kann ich denn das Änderungsdatum für eine Datei rausfinden.
Den Dateinamen habe ich wie kann ich anhand dessen rausfinden wann die Datei zum letzten mal geändert wurde.

(Bin Delphi-Anfänger) 8)

_________________
Man muss nicht alles glauben, was stimmt!
Terminator Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 34


D6 Prof
BeitragVerfasst: Di 16.11.04 15:52 
var
DOSDatum : integer;
WinDatum : TDateTime;

.....
.....
.....
DOSDatum := FileAge(edtFileName.Text);
WinDatum := FileDateToDateTime(DOSDatum);
lblData.Caption := DateToStr(WinDatum);

hab's geschafft aber ist ein wenig Umständlich oder ?

_________________
Man muss nicht alles glauben, was stimmt!
jojo-sp
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 317

Windows XP Prof, Vista Ultimate & Home Premium, Windows 7
Delphi 7 Enterprise, Delphi 2009
BeitragVerfasst: Di 16.11.04 16:28 
Versuch es mal mit getfileTime und der Delphi Hilfe oder der Forums-Suche!

_________________
Ist der Ruf erst ruiniert, lebts sich gänzlich ungeniert...
Wilhelm Busch (1832 - 1908)