Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

To change  path(location) were ini file should be created

Posted on 2007-12-05
2
Medium Priority
?
185 Views
Last Modified: 2010-04-04
 I have my Delphi.exe  program on desktop. And on desktop a get my ini file  itch time
i start my application.  how to create it somewhere else?
0
Comment
Question by:pr2501
2 Comments
 
LVL 19

Accepted Solution

by:
MerijnB earned 200 total points
ID: 20411406
provide a path when you create the TIniFile class

var IniFile: TIniFile;
begin
 IniFile := TIniFile.Create('c:\windows\myini.ini');
 ...
end;
0
 
LVL 21

Expert Comment

by:ziolko
ID: 20411511
use registry

ziolko.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question