Autor Beitrag
klausiemausie
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 98

Win XP, Win Vista Ultimate
Delphi 6
BeitragVerfasst: Mi 04.02.09 12:06 
sry, wenn ich so dumme fragen stelle, aber wie sage ich delphi dass er eine datei laden soll die in dem selben ordner liegt wi die exe? bzw. in dem ordner wo die exe liegt, ist noch ein zweiter ordner, in dem die datei ist, die ich laden will
('...\zweiterOrdner\datei.dateiendung') funktioniert nicht
gruss klaus
Andreas L.
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 1703
Erhaltene Danke: 25

Windows Vista / Windows 10
Delphi 2009 Pro (JVCL, DragDrop, rmKlever, ICS, EmbeddedWB, DEC, Indy)
BeitragVerfasst: Mi 04.02.09 12:08 
Schau dir mal ExtractFilePath und Application.Exename in der Delphi-Hilfe an.
ImbaPanda
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 98

Windows XP/Vista
Delphi 7 Professional/ Rad Studio 2009
BeitragVerfasst: Mi 04.02.09 12:10 
ExtractFilePath(ParamStr(0)) liefert dir den Pfad, in dem deine Anwendung/.exe ausgeführt wird.
Das sähe dann z.B.folgendermaßen aus:
ausblenden Delphi-Quelltext
1:
Pfad:=ExtractFilePath(ParamStr(0)) + 'zweiterOrdner\datei.dateiendung'