Autor Beitrag
Delphianer23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 156



BeitragVerfasst: Mi 19.02.03 20:19 
Geht das so?


if fileexsits('D:\projekt\bild.zip') then
??
Horst
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 120



BeitragVerfasst: Mi 19.02.03 20:23 
Blutiges Elend hat folgendes geschrieben:
Geht das so?


if fileexsits('D:\projekt\bild.zip') then
??


so geht das! :)
mal abgesehen von deinem Tippfehler.
Es gibt sogar ein Beispiel in der Delphi-Hilfe-Datei:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
Im folgenden Code wird vor dem Löschen einer Datei eine Bestätigung verlangt.

if FileExists(FileName) then

  if MessageDlg('Wollen Sie ' + ExtractFileName(FileName) + ' wirklich löschen?'), mtConfirmation, [mbYes, mbNo]) = IDYes then 
    DeleteFile(FileName);


Noch Fragen?

Gruß

Horst

:wave:
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 21.02.03 19:43 
ama besten erst mal die delphi hilfe durchlesen. es gibt auch sachen um zu prüfen ob ordner existieren !!

_________________
In the beginning was the word.
And the word was content-type: text/plain.