using the .ini file created by EXE

First of all I would like to say that I have a thorough knowledge of the .ini files and the need for them.  My question is related specifically to the .ini file that is created with the executable.  I searched the forum but have not found any instance of my question specifically.  After installation, the .exe and .ini are placed in my working directory in Program Files, which I expected.  The .ini file that is created is attached.

Now, I would like to point to a different .ini that stores control settings.  I did it in the App generator under Advanced > Use Custom Config File.  That's fine and dandy, but the network, web, settings etc that have been created in the original .ini does not get included in my new .ini.  If my option is to use an .ini file separated with my control as well as created by the .exe parameters.  This seems redundant.

My question is: does nothing my executable with the .ini file that is created when it starts to run?  I'd be OK NOT to have attached items if I wanted to point to a custom .ini file?  Why create an .ini with these specific settings file if the .exe does nothing with them?

The only article I found is this one

http://digital.NI.com/public.nsf/allkb/5467F7D7895835C186256FAF00600A21?OpenDocument

but it does not explain what the .exe is done with it, if anything.  I guess you have a total control over the .ini and there is nothing "automatic / backstage" going on here.

Thanks in advance for your help.

Why remind you the application builder to a custom INI file if you are going to have to read the chips inside manually anyway?  The reason to use a custom within the app Builder INI file is so that you can include specific parameters of execution (VI, access list server, port etc.) which are different from the settings using the LabVIEW development environment.

You need not key in the INI file for your run-time application (as evidenced by the fact that if you delete the INI file, your exe will still works, creating a new INI file with default values).  If you leave the defaults, the application adds in the first leg in any case.

You can store your own data in the same INI file used by the executable file; just put the keys in a different section.  LabVIEW Config File format INI files screws slightly differently (for example adding spaces around the = sign), but I didn't know it causes problems.

Tags: NI Software

Similar Questions

  • Why not be able to run MRT.exe using the batch file?

    When I run the following script using the batch file, MRT cannot be run.

    Does anyone have any suggestions?

    Thanks in advance for your suggestions

    off @echo
    C:\WINDOWS\system32\Mrt.exe/q/f

    Hello

    ·         The computer is connected to a domain network?

    ·         What is the error you get when trying to execute the batch file?

    If the computer is connected to a domain network, I suggest you to report this issue in Windows XP IT Pro Forums: http://social.technet.microsoft.com/Forums/en-US/category/windowsxpitpro

    Thank you.

  • Place the ini file in a specific location when the application generating

    Hello

    I have a little problem.  I have an ini file that I use to store some settings.  Lets call this app.ini file.  When I build the Application.exe, it puts this file in the data directory.  I was hoping that it would be at a higher level and be located in the same directory as Application.exe is (otherwise it will not read the file correctly.)  Looked at the settings of the Source file in the list of categories in the Properties window for the construction and all the 'Identical to the appellant' Destination, but he did not where I wanted.  I would really like this file to a directory higher when I do my build so that my application to read correctly.  Any suggestions?

    I use this executable then when I do my Installer and the problem just spreads here also, not good.

    One way to solve the problem:

    (1) in the build Properties window, select Destinations and create a new destination. Select the same directory where the exe file will be stored as 'Path of Destination'

    (2) assign this destination in the .ini file.

    Let me know if it works

    Marco

  • Best practices for the .ini file, reading

    Hello LabViewers

    I have a pretty big application that uses a lot of communication material of various devices. I created an executable file, because the software runs on multiple sites. Some settings are currently hardcoded, others I put in a file .ini, such as the focus of the camera. The thought process was that this kind of parameters may vary from one place to another and can be defined by a user in the .ini file.

    I would now like to extend the application of the possibility of using two different versions of the device hardware key (an atomic Force Microscope). I think it makes sense to do so using two versions of the .ini file. I intend to create two different .ini files and a trained user there could still adjust settings, such as the focus of the camera, if necessary. The other settings, it can not touch. I also EMI to force the user to select an .ini to start the executable file using a dialog box file, unlike now where the ini (only) file is automatically read in. If no .ini file is specified, then the application would stop. This use of the .ini file has a meaning?

    My real question now solves on how to manage playback in the sector of .ini file. My estimate is that between 20-30 settings will be stored in the .ini file, I see two possibilities, but I don't know what the best choice or if im missing a third

    (1) (current solution) I created a vi in reading where I write all the .ini values to the global variables of the project. All other read only VI the value of global variables (no other writing) ommit competitive situations

    (2) I have pass the path to the .ini file in the subVIs and read the values in the .ini file if necessary. I can open them read-only.

    What is the best practice? What is more scalable? Advantages/disadvantages?

    Thank you very much

    1. I recommend just using a configuration file.  You have just a key to say what type of device is actually used.  This will make things easier on the user, because they will not have to keep selecting the right file.

    2. I use the globals.  There is no need to constantly open, get values and close a file when it is the same everywhere.  And since it's just a moment read at first, globals are perfect for this.

  • use of ini files

    Hello

    I have a question about the customs with the ini file.

    I would like to know what is the common good, for now, I create a big bunch of cluster that contains parameters of

    program (by using the openg palette).

    The values in this file normally do not change much, but sometimes they must and could be changed by the user and others only by developer.

    However if he knows he can do dangels directly with txt Editor.

    So I have to do two ini files or I make a confusion between the ini file (ex name path, ports, devices) and the file parameters (number of point, stability... criteria?

    What is the common habit of programming?

    When necessary make you changes on an ini editor txt file or do you develop a vi to re - write?

    Best regards

    Tinnitus

    Tinnitus,

    I'm not sure that there is a 'standard' for the .ini files.  In some cases, I think it's a good idea to divide the information into multiple .ini files.  One to contain things that would need to change only the developer and the other to hold the things the user may need to change.

    I always develop a vi to create the .ini file the first time.  That way if I need to provide an interface to change settings, I.  An advantage of this is that you can protect against stupid errors that may occur in the text editor.  You can build into a Global engine / functional Action that supports the .ini in general.

    I also suggest that you take a look at the Configuration variant OpenG screw file found here http://wiki.openg.org/Oglib_variantconfig.

  • Why can't I just copy a profile to another system in the directory profiles and modified the ini file

    My main system crashed. I have a copy of the profile. When I move a copy of the profile in the profiles folder and edit the ini file to use the new name, I get a message that there is an instance of thunderbird running and I need to shut it down. I don't see any instance of thunderbird anywhere in the Task Manager. It happens just for me the fact that I am also in firefox may be the cause of the problem to a running instance. I'm under V31.7.0

    I tried to simply move the mail directory in the existing profile. The thing is that I don't see the old messages. I can see all of the subfolders of the Inbox on the left but not messages in the right pain. I can see new messages, but it's all in the Inbox and not filtered to the subfolder.

    I tried to activate the function of multiple profile but that doesn't seem to work.

    MY BAD
    It seems that I had something that was bad in the profile. I got the profile from a backup and now Thunderbird works fine.

    Sorry that I missed the problem earlier.

  • How to write data from the INI file for the control of the ring

    Hai,

    I need to write the data read from the INI file to a control of the RING. Doing this operation using variants I get the error.

    I will be happy if someone help me. I have attached the file special INI and VI.


  • default setting of the entry in the ini file?

    What, in v2011, is the default setting in the ini file AllowMultipleInstances value? I know this isn't a field normally included in the generated ini file when an exe is built, I wonder what the value is default? I've added in the ini file, set to False on a machine, I try to solve problems which has a launch program so slow that operators often go back and try and start again, which results in two instances, only that works properly.

    Test with any simple program, it seems that the default value is false, as usual.

    Maybe your executable is so heavy during the loading time is not "recognizable" a later instance for a long time?

    In this case, you can write a slight stub program that will be launched by the user instead of the main.

    The heel should run at hand via a file cmd or SystemExec; It would give fast feedback to the user; It should stay for enough time to leave the main appear, then stop itself.

  • Question about the .vmx file created on ESXi

    I'm trying to automate the creation of a virtual machine and take a snapshot. I use the vSphere SDK Perl.

    The problem I faced is if I create a virtual machine called TestVM, the .vmx file created on the ESXi is TestVM_1.vmx instead of TestVM.vmx due to which my snapshot creation fails.

    I faced the same problem, if I manually create the virtual computer. If there is no other computer virtual with the same name.

    A restart of the server ESXi fixed the problem.

  • How can I use the Eps files?

    Hello world

    I have download vector design business of brochures "shutterstock"... But I don't understand how I can modify and use in indesign

    I want to switch to indesign layers and modify

    InDesign is not a publisher of eps. The InDesign model is to imitate the glued model that designers were familiar with days before computers. Text blocks and graphics are arranged in the pages of a document, and if you wish, several documents can be run together like chapters in a biggest book, with the possibility to index, create a table of contents and have notes.

    Shutterstock brochure is really an eps? I guess it could be, but eps is a format which is largely abandoned these days. It could have been made from a variety of programs, but change isn't really the purpose of the eps. You want to get the original files that it was generated from and he change it. Illustrator is a program that can edit the eps files created in Illustrator, but this is not practical if they are Illustrator eps files. You can change some other programs with Illustrator eps files, but it can be much harder to do this is to create the file from scratch, depending on how it was interpereted by the Illustrator. Best bet is to get the InDesign files, if you want to work in InDesign.

  • Models of DW: 'this document uses the following files not in this site.

    I recently started using DW templates in CS6. It was a bit frustrating at first, but seems well wouth it. I've created quite a few pages in the folder root of hares and have no problems there. However, I created a new folder to a different section of my site (mysite.com/new_folder/new_page.htm), and then went to save a new page of the model and got the message "this document uses the following files not in this site. Its the same site, just a new folder which is placed at the root.  When I save the page in the new folder there to make a copy of duplicant images, css scripts and place them in the new folder to work? Must be a way to do it and have DW know where to find the original files surely?

    Thank you

    I downloaded a test page... It turns out that the 'message' was just misleading and all the Info page has correct links. Everything is good

  • Build dimension using the rules file

    I use Oracle Hyperion worm 9.3.1. So that the dimensions of formatting built using the rule file, I came across the 'JOIN' and 'Create Join using' options. Can someone help me to know the difference between these two options?

    Published by: 873675 on July 20, 2011 12:25 AM

    The documentation explains the difference with examples, now I was going to post the link, but I might as well post the info from the link.

    Join the fields

    You can join several fields into one. The new field is given the name of the first field in the join. For example, if a data source has separate fields for the number of product (100) and the family of products (-10), you must join the fields (100-10) before loading in the Sample.Basic database.

    Create a field by joining fields

    You can reach the fields by placing fields joined in a new field. This procedure leaves intact original fields. Creating a field is useful if you need concatenate the fields of the data source to create a member.

    For example, if a data source has separate fields for the number of product (100) and the family of products (-10), you must join the fields (100-10) before loading in the Sample.Basic database. If, however, you want to keep the two existing fields in the data source, you can create a field (100-10) using a join. The data source includes now all three fields (100, - 10 and 100-10).

    To read other rule options - http://download.oracle.com/docs/cd/E17236_01/epm.1112/esb_dbag/ddlfield.html

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • RadioWMPCoreGecko19.dll arose in my download manager, the source file is Firefox.exe. What is this file?

    Norton 360 has popped up a message 'file insight' associated with a file that has been downloaded on my PC. The source file was Firefox.exe, and the name of the file is RadioWMPCoreGecko19.dll
    Some sites refer to this file as malicious, but it seems to me that it is a plugin for firefox extension? Can you explain me this file?

    See also [878063/questions/878063]

  • read and sort the values present in the .ini file

    Hi all

    I have an .ini file in which a set of modules with that execution order is mentioned. I want to get all these values sorted in a table, so that I can proceed with the execution of each one in the order given. The list of the module in the .ini file looks like this:

    .

    Here, the numbers represent the order of execution of the module.

    I should get output as a table with the following values:

    1 MNO

    DEF 2

    3 STU

    4 PQR

    5 GHEE

    6 VWZ

    ABC 7

    8 JKL

    I don't know about the configuration data and reading key live but as the list of modules is huge I don't know how to write efficient code for this. Any suggestions are welcome.

    Thank you.

    The excerpt below should be very close to what you want.

  • How to upgrade a driver automatically in Windows NT by using the batch file

    I use the devcon tool to update a Windows XP driver, but unfortunately it does not support Windows NT. So I'm looking for a similar tool for Windows NT. Does anyone know any tool / or script that would update a driver via file/command line in Windows NT?

    Thank you for taking the time to read the question.

    Hello supportalcon,

    Thank you for the question!

    It is disheartening to know that have problems you with the Windows Driver. As I understand it, you need to update a driver automatically in Windows NT by using the batch file.

    The question you posted would be better suited in the MSDN Forums. I would recommend posting your query in the MSDN Forums. You can follow the link to your question:

    http://social.msdn.Microsoft.com/forums/en-us/categories/

    Meet us if you face any problem of Windows, and I'd be happy to help you again and try to correct the problem as soon as possible.

    Good day!

    Hope this information helps.

Maybe you are looking for