10-08-2018 08:23 AM
Hi everyone,
I have created a .exe of my program and I would like to associate it to a .ini file so that I can set some of my variables are set by default. I am new to using .ini files.
I have used the write and read INI Labview example and it works fine with my original program and with the .exe.
The problem is that in my original program, the .ini file is in specific place. I could put that .Ini file in the same place on the computer where the .exe is running. But I was wondering if there is a possibility to set the folder containing the .exe as the default path to go and get .ini file?
If this is not possible, what is the best thing I should do regarding the location of a .ini for a .exe?
Thanks for your help.
User
10-08-2018 08:56 AM
You can use app dir constant
or change file name in builder settings
10-08-2018 09:03 AM
Hi User,
you can place the INI file anywhere you want and have your EXE load/open the INI file from that place.
Usual places to store INI files are (among others):
- %localappdata%
- %appdata%
- %programdata%
- the folder, where your EXE is located in
- the data subfolder of your EXE
10-08-2018 10:04 AM
@Artem.SPb wrote:
You can use app dir constant
or change file name in builder settings
Not quite sure the intent is to use a custom LabVIEW config.