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.
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):
- the folder, where your EXE is located in
- the data subfolder of your EXE
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.