Autor Beitrag
Mandi Nice
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Win2K, XP, CE
Delphi 2006 Prof.
BeitragVerfasst: Mo 09.01.12 15:03 
Hallöchen

Ich benenne eine Datei um ( AssignFile, Rename, CloseFile ) und erstelle die gleich Datei wieder neu (AssignFile, Rewrite ).

Damit erstelle ich ein Backup der alten Datei und erzeuge eine neue leere Datei.

Die neue Datei hat aber als Erstellzeitpunkt denselben Zeitpunkt als die alte Datei ?
Der Zeitpunkt vom letzten Zugriff stimmt aber.

Wie kann ich das Problem lösen.

Danke Euch.

mfg
Mandi
Oliver Marx
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 80
Erhaltene Danke: 18

Win 7 Prof.
Delphi XE Prof.
BeitragVerfasst: Mo 09.01.12 15:42 
Hi,

lösch die Datei einfach vor dem neuen Schreiben mit DeleteFile();

Viele Grüße

Oliver
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mo 09.01.12 15:46 
Den wichtigsten Teil verschweigst du uns. Wie fragst du denn das Erstelldatum ab und übergibst du auch die richtige Datei/Handle?
Mandi Nice Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 29

Win2K, XP, CE
Delphi 2006 Prof.
BeitragVerfasst: Mo 09.01.12 16:04 
Hallo

>> Oliver Marx

Ich will die Datei nicht löschen. Die alte Datei soll bestehen bleiben.

>> Luckie

Ich frage das Datum gar nicht ab. Im Windows Explorer wird es angezeigt.

mfg
Mandi