Autor Beitrag
O'rallY
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Sa 27.07.02 16:02 
Ok, der Titel sagt es ja schon, ich bräuchte ein Funktion, die den Pfad der eigenen Applikation zurückgibt.

P.S.: Tut mir leid, wenn ich eine Frage stelle, die wahrscheinlich schon des Öfteren gestellt worden ist, aber ich habe schon die Suche bemüht und habe nichts gefunden :roll:
cbs
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 207
Erhaltene Danke: 1



BeitragVerfasst: Sa 27.07.02 16:12 
tag auch

es geht mit
ausblenden Quelltext
1:
path:= Application.ExeName;					

oder mit
ausblenden Quelltext
1:
Path:= ParamStr(0);					

wobei path nen string ist

du erhälst jeweils den pfad und den dateinamen der exe. wenn du nur den pfad möchtest gehts so
ausblenden Quelltext
1:
nurderPfad:= ExtractFilePath(path);					

wobei nurderPfad wieder in string ist
O'rallY Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 563



BeitragVerfasst: Sa 27.07.02 16:23 
danke!
Das mit dem Parameter[0] ist glaub ich auch in C/C++ so... nur mal dazu :)