![]() |
IniFile unter Windows Vista erzeugen und auf HDD ablegen
Hallo,
kann es sein, dass man unter Windows Vista keine INIFiles mehr auf der HDD ablegen kann?
Delphi-Quellcode:
MFG Christian18
procedure TFEinstellungen.BitBtn1Click(Sender: TObject);
var Ini : TIniFile; begin Ini:=TIniFile.Create(ExtractFilePath(Application.ExeName + 'Settings.ini')); try with Ini do begin WriteInteger('Settings', 'FBreite', StrToInt(Edit1.Text)); end; finally Ini.Free; end; end; |
Re: IniFile unter Windows Vista erzeugen und auf HDD ablegen
ich würde sagen, es liegt eher an Deinem Code:
Code:
Richtig wäre:
ExtractFilePath(Application.ExeName + 'Settings.ini'));
Code:
ExtractFilePath(Application.ExeName) + 'Settings.ini'
|
Re: IniFile unter Windows Vista erzeugen und auf HDD ablegen
Ist es nicht eher so, dass man (zumindest unter Vista) keine Ini-Files im Programmverzeichnis ablegen sollte? Die Forensuche sollte da einiges zu Tage fördern.
|
Re: IniFile unter Windows Vista erzeugen und auf HDD ablegen
Stichworte wären UAC (User Account Control) und virtualisiertes Dateisystem.
|
Re: IniFile unter Windows Vista erzeugen und auf HDD ablegen
Zitat:
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 11:14 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz