Autor Beitrag
sPeeD2k5
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Mi 01.10.08 20:23 
Hey Leute kleine aba feine Frage: Mit welcher Funktion bekommt man das Directory wo das Programm ausgeführt wird?

Mfg sPeeD
wazup
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 101

Windows XP
Delphi 2009
BeitragVerfasst: Mi 01.10.08 20:31 
Entweder CurrentDir; oder ExtractFilePath(ParamStr(0));, funktioniert beides...
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Mi 01.10.08 20:34 
GetCurrentDir muss nicht das Gleiche sein wie ExtractFilePath(ParamStr(0)). Daher Letzteres

[edit] Mein Nachposter hat Recht, deshalb durchgestrichen [/edit]


Zuletzt bearbeitet von DeddyH am Mi 01.10.08 20:40, insgesamt 1-mal bearbeitet
Timosch
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1314

Debian Squeeze, Win 7 Prof.
D7 Pers
BeitragVerfasst: Mi 01.10.08 20:35 
Wobei das Verzeichnis, in dem das Programm liegt, nicht mit dem aktuellen Arbeitsverzeichnis übereinstimmen muss. Siehe z.B. "Ausführen in" in den Eigenschaften von Verknüpfungen.
EDIT: Verdammt, zu spät. Aber es ist nicht ganz sicher, welches von beiden der OP sucht.

_________________
If liberty means anything at all, it means the right to tell people what they do not want to hear. - George Orwell