Autor Beitrag
lblbw
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 122

Win XP, Win 7
Delphi7 Enterprise
BeitragVerfasst: Mo 31.03.08 18:18 
Hallo,

ich möchte, das mein Programm eine Datei von einem bestimmten Server runterlädt. So weit so gut. Das Programm soll aber die Datei in den gleichen Ordner packen, in dem auch das Programm ist. Da das ganze aber später veröffentlicht wird, so muss das ganze Variabel sein. Wie löse ich das am besten.
jakobwenzel
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1889
Erhaltene Danke: 1

XP home, ubuntu
BDS 2006 Prof
BeitragVerfasst: Mo 31.03.08 18:20 
Abgesehen davon, dass es schlecht ist, Dateien in den Programmpfad zu speichern, kommst du mit Application.ExeName oder ParamStr(0) an den Dateinamen der Exe, und mit ExtractFilePath holst du den Pfad da raus.

_________________
I thought what I'd do was, I'd pretend I was one of those deaf-mutes.