Autor Beitrag
DHE
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37

Win XP, Ubuntu 9.04
Delphi 7 PE; Delphi 2010 Prof (Dank AGS 2009 ;-) )
BeitragVerfasst: Do 23.02.06 18:30 
Wie kann ich den Pfad des laufenden Delphiprogramms herausfinden, so das ich zum Beispiel aus einem Unterordner eine Datei kopieren kann ?
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 23.02.06 18:32 
Moin und :welcome: im Forum!

ausblenden Delphi-Quelltext
1:
ShowMessage(Application.Exename);					


cu
Narses
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Do 23.02.06 18:33 
ausblenden Delphi-Quelltext
1:
ExtractFilePath( Application.Exename);					

_________________
Markus Kinzler.
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Do 23.02.06 18:34 
Und um nur den Pfad zu bekommen:
ausblenden Delphi-Quelltext
1:
pfad := ExtractFilePath(Application.ExeName);					

;)
DHE Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 37

Win XP, Ubuntu 9.04
Delphi 7 PE; Delphi 2010 Prof (Dank AGS 2009 ;-) )
BeitragVerfasst: Do 23.02.06 18:37 
Danke für die Hilfe war genau das was ich brauchte :-)