Autor Beitrag
Barzi
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 02.06.06 15:08 
Moin, wie kann ich den Dateipfad ermitteln,wo das Programm gespeichert ist und diesen in einer Variable speichern?

:?: :?: :?:
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Fr 02.06.06 15:10 
ausblenden Delphi-Quelltext
1:
2:
3:
var s:string;

s:=extractfilepath(paramstr(0));

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Gausi
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 8554
Erhaltene Danke: 481

Windows 7, Windows 10
D7 PE, Delphi XE3 Prof, Delphi 10.3 CE
BeitragVerfasst: Fr 02.06.06 15:11 
ausblenden Delphi-Quelltext
1:
2:
3:
MeinPfad := ExtractFilePath(ParamStr(0));
//oder
MeinPfad := ExtractFilePath(Application.ExeName);

_________________
We are, we were and will not be.
Barzi
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Fr 02.06.06 15:22 
DANKE...klappt beides!!!