Autor Beitrag
Krefti
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 164

Win XP/Vista/Win7/ubuntu
Delphi 7/2006/2009 Pro
BeitragVerfasst: Fr 09.03.07 11:31 
hi zusammen..

hab ne ganz kurze frage..

ich möchte ein inifile anlegen und den aktuellen pfad speichern..das inifile soll im programmverzeichnis stehen
hab des mal so versucht..aber er hat probleme mit dem getdir()..wie kann ich des am einfachsten machen??


ausblenden Delphi-Quelltext
1:
2:
inif := Tinifile.Create(ExtractFilePath(ParamStr(0)) + 'LD824Export.ini');
inif.WriteString('Pfadangabe','speicher',getdir(0,s));


Vielen Dank schon mal für eure hilfe..

gruß
krefti

sorry jungs und mädels..mein post war zu voreilig..ich habs rausgefunden..natürlich muss ich mir des getdir(0,s) vorher machen und dann einfach des s auslesen..


Moderiert von user profile iconGausi: Topic aus VCL (Visual Component Library) verschoben am Fr 09.03.2007 um 10:37
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 09.03.07 14:30 
nur so der Vollständigkeit halber:
Du weißt schon, dass man Einstellungen bzw. Dateien allgemein nicht unbedingt im Programmverzeichnis ablegen sollte? Eigentlich sollte das alles im User-Verzeichnis abgelegt werden. Wie man das ermittelt findest du in der Delphi Library.

_________________
In the beginning was the word.
And the word was content-type: text/plain.