Autor Beitrag
JPSelter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 24

Win98, Win2000
D5
BeitragVerfasst: Fr 21.01.05 10:02 
Gibt es eine Variable, die mir den aktuellen Ordner der Haupt-EXE zurückgibt? Ich möchte ein paar Daten ins Verzeichnis speichern, wo die EXE ist, aber wenn ich bei AssignFile nichts angebe sucht er bei c:\

_________________
Signaturen unterliegen manchmal sehr strengen Richtlinien...
r4id3n
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 115

Win XP Home, Win XP Pro
D6 Prof, D7 Ent, K3 Ent
BeitragVerfasst: Fr 21.01.05 10:08 
Extractfilepath(Application.exename);
sourcehunter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 482

Win XP | Suse 10.1
Delphi 2005 Pers.
BeitragVerfasst: Fr 21.01.05 23:20 
Du findest den vollständigen(mit dem exe-Dateinamen) Pfad zur .exe im 0. Parameter des Programms.

ExtractFilePath(ParamStr(0));

_________________
Linux und OpenSource rulez!