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

Tags: NI Software

Similar Questions

  • How to place a file at a specific location

    I need to know how to place an eps graphic in a specific location.  I can put a file but I can't seem to be able to move it.  Is it possible to position it correctly over the action of the place?

    Thank you

    Hi Mario,.

    Take a look at the ImageCatalog.jsx that comes with ID and look for the line:

    myRectangle = myPage.rectangles.add (myDocument.layers.item(-1), defined, undefined, {geometricBounds: [myY1, myX1, myY2, myX2], strokeWeight:0, strokeColor:myDocument.swatches.item("None")});})

    This should help you to get what you need (note geometricBounds: [15,15,59.5,66.5]).

    myDocument var = app.documents.add ();
    {with (myDocument)}
    myPage var = pages [0];
    {with (MyPage)}
    myFrame = pages.item var (0).rectangles.add ({geometricBounds: [15,15,59.5,66.5], strokeWeight:0, strokeColor:myDocument.swatches.item("None")});})
    {with (myFrame)}
    myFile = myFrame.place (File (myFile), false);
    }
    }

    You can also check:

    http://www.jongware.com/idjshelp.html

  • Open a pdf file to a specific location

    Dear friends,

    I would like to support a dialog with a help button that needs to open a pdf file to a specific location, is defined by number of page or (better) by named Destination.

    var helpFile = File($.fileName.replace (/\.jsx(?:bin)?$/i , ".pdf"));
    OpenPDF (helpFile, "FMcalccalculations"); // named dest = M8.newlink.FMcalccalculations
    
    function OpenPDF (fileName, destination) {
      if (fileName.exists) {
        fileName.execute("nameddest=M8.newlink." + destination);
      }
    }
    

    This is to open the pdf file on the first page.

    How can I pass parameters - not knowing what pgm will open the pdf file (depending on the installation of the user)?

    I've seen (IMHO) using an intermediary VBscriptthat crunch, but I have not yet tested this approach. As far as I understand that this would imply a VSscript for each destination in the pdf file.

    All ideas are wolcome.

    Klaus

    Well, friends, I found a solution on StackOverflow.com: in German, we say such a solution 'von fun druch die brust projectiles' fur.

    ExtendScript:

    // Open PDF at named destination
    
    var theFile = "PDFwithDestination.pdf";           // for my case: in same path as this script
    var destination = "M8.newlink.FMcalcseries"       // needs to be found in pdf, because the 8 is not a constant
    OpenPdfAtDestination (theFile, destination);
    
    function OpenPdfAtDestination (pdfFile, namedDestination) { // ====================================
    var path = GetScriptPath () + "\\";
    var location = "nameddest=" + namedDestination;   // see "Parameters for Opening PDF Files"
    
    // Call OpenPdfWithParameters, according to
    // http://stackoverflow.com/questions/20862868/file-execute-is-not-executing-my-script-how-to-debug-this-issue/20863131#20863131
    // A workaround to pass arguments is to create another file, that calls this script with arguments.
    // Yawar 2015-03-15
    
    // Create the calling batch file
    var tempFile = File (path + "tempScript.bat");
      tempFile.open("w");
      tempFile.encoding = "UTF-8";
      tempFile.writeln (path + "OpenPdfWithparameters.exe " + '/A ' + location + ' "' + path + pdfFile + '"');
      tempFile.close();
      tempFile.execute ();
      tempFile.delete;
    }
    
    function GetScriptPath () { //=====================================================================
    // Get the script path
    // Returns path in the function
      var scrPath, newPath, winPath, lastBSlash;
    
    // $.fileName: script path (including the file-name of the script)
    // platform independent format e.g. /e/_DDDprojects/FM+EN-escript/escript
      scrPath = $.fileName;
      winPath = new File (scrPath);
      scrPath = winPath.fsName;                       // get Windows format
      lastBSlash = scrPath.lastIndexOf("\\");         // \ needs escaping
      scrPath = scrPath.substring(0, lastBSlash);
      return scrPath;                                 // no final \ !
    } // --- end GetScriptPath
    

    AutoHotKey script - must be converted into an exe file:

    ; OpenPdfWithParameters.ahk
    ; 2016-04-15 Klaus Daube
    
    ; Get the arguments from the caller (works only in compiled version!)
    parmList =
    Loop, %0%  ; For each parameter:
    {
      param := %A_Index%
      parmList = %parmList% `n%param%
    }
    ; MsgBox, Number of parameters: %0%`n%parmList%
    
    ; let's find the relevant application
    RegRead, sDefaultApp, HKCR, .pdf
    RegRead, sDefaultAct, HKCR, %sDefaultApp%\shell
    RegRead, sDefaultCommand, HKCR, %sDefaultApp%\shell\%sDefaultAct%\command
    StringTrimRight, command, sDefaultCommand, 5 ; remove the "%1"
    ; MsgBox %command%                      ; "H:\Adobe\Acrobat11\Acrobat\Acrobat.exe"
    
    ; open the pdf with the parameters according to "Parameters for Opening PDF Files"
    Run, %command% %parmList%
    

    This works, however a flicker is created due to the execution of the batch file.

  • Unable to save the file in a specific location

    I created a C:\Users\Projects\Writing projects folder to save my writing projects in. I tried to put a Word file in this folder and I was told that I don't have administrator rights to save a file in this location. I must have administrator rights, because it is my PC, and I have only set up an account with which I set install programs, remove any software, create folders, etc etc, so what happens? He told me that I could save the file under 'my documents '. I don't want to post here, because a load of other detritus accumulates in this folder, and these are files of project specific I want to keep separate (I'm a writer).

    Hmmm, I just did exactly that on my computer with Word 2007 and Home Premium from Windows 7 64 and had no problem at all.  If you have the professional version or complete edition, you can run in a part of the increased security, maybe.  You can still create these folders as subfolders of the My Documents folder and isolate what you put there like that.  Another thing you could try would be to create a LIBRARY that points to the C:\Users\Projects\Writing project that you created.  This might be more likely to succeed.

    One thing I just noticed that is not in your post is your user ID.  You create these records in C:\Users\yourID\Projects\Writing projects.  That's what I was doing.

    Good luck.

  • Copy all indd files in a specific location

    Hello guys I do not know why my script does not work as I want.

    I want my script to work in this way, when I choose a folder in the my script dialog box to choose all the .indd files

    and put them in a specific location

    See code below

    var myFolder = Folder.selectDialog ('Choose a Folder');
    $.writeln('-------------------------------\r' + myFolder.displayName + '\r-------------------------------\r');
    if(myFolder != null){
      var myFiles = myFolder.getFiles('*.indd');
      for (i = 0; i < myFiles.length; i++)
      {
      var myFile = myFiles[i];
      // myTargetFolder = "/Kommuni/LaRe/LareAUTO/341542" // put files here
    
    
    
    myFiles[i].copy ("/Kommuni/LaRe/LareAUTO/341542/");
    
    
    // $.writeln(myFile.displayName);  // just for write the data in console
      }
    }
    
    
    
    

    Can someone help me put a correct code here

    Thanks in advance

    Congratulations to all members

    Hello

    You must use a valid path to a file or a folder, so:

    //....
    destFile = new File("/Kommuni/LaRe/LareAUTO/341542/" + mFile.name);      // to create an object
    $.writeln( destFile.name + " - " + destFile.exists);    //  to check if your path exists
    myFiles[i].copy (destFile);    //    to copy file
    //.....
    

    Jarek

  • Download a file using a php script when running applications with LCD screens

    Hello! I'm developing an application in Flex 2 / Java - running on the LCD / JRun server.

    I'm trying to add downloading features. I use a script php to the download section.

    First, I'm just trying to put the script in the application directory. Does not work.
    After that I created an apache server where I put a small web site with my script. He tells me that my file is downloaded correctly, but I can't find the file. The apache log I don't give no errors.

    Can someone help me?

    Originally, I had problems w / the file placed in C:/whatever.ext b/c I was not using relative paths.

    This is the code I use:
    --------------------------------

    $MAXIMUM_FILESIZE = 1024 * 1024 * 2; 2 MB
    $newFileLoc = '. '. "/ wherever/file.jpg.

    If ($_FILES ['Filedata'] ['size'])<= $maximum_filesize)="">

    move_uploaded_file ($_FILES ['Filedata'] ['tmp_name'], ".") / temporary / ". $_FILES ['Filedata'] ['name']);"

    Rename ("./temporary/". $_FILES ['Filedata'] ['name'], $newFileLoc);
    chmod ($newFileLoc, 0777);

    }

    ---------------------------

    Editing of this article by Adobe:

    http://livedocs.Adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=live Docs_Book_Parts & file = 17_Networking_and_communications_173_6.html

  • Applications created with the Application generator does not start. It was after that I allowed the update install patches. Now the Version is 12.0.1f3 (32 bit)

    Help! Do not know what happened... I left the patch install the updater f3.  Now, when I create an application, it appears on the task bar (Windows 7) for a few seconds, then goes.  I don't know where to begin to understand this.

    Thank you

    Rich

    It is on the same computer.  The PC has the standard COMPUTER stuff.  VIper and they handle most of the firewall settings (windows).  I have turned them all off before installing.  I think it was a matter of execution engine.  I have no time to fight with LabView, so I uninstalled all LabView!  Then I made a new installation of the DVD.  This works.  I never install a patch of NOR without a week of free time!  In others, ever!  Whenever I do it, it takes me at least a day to get my operating environment!  Thanks for your time.  It is appreciated.

    Best regards

    Rich

  • INI file with the characters multibyte to the language question

    Hello

    I am doing research on several language support in our CVI programs.
    I'm new to programming multibyte, as always I coded it in English so far.

    I found the Interface Localizer and have played around with translating my GUI controls. That works well, except on the title bar that is displayed in one code other than the language, I translate. But it will not work for messages popup or dynamic views.

    I read a few white papers. I'm not too worried about Run Time messages, for the most part, I'm worried about specific incentive program and the GUI.

    I've seen several topics suggesting using an external INI file to translate specific messages in my program. So I tried to create an ini file that uses Unicode and a Chinese character.
    When I call Ini_NumberOfSections using this INI file, my software returns a number of sections 0 when there is, in fact, the 1 article. This happens if I format my INI file in any format other than ANSI, Unicode.

    So my question is simple: how to read an INI file and specifically the tag, using characters to multibyte to Unicode?

    Is this a setting? Or I have to write my own read INI and the analysis of function?

    Thank you very much.

    Ok

    I finished my first step in the R & D. Here's what I know:

    I tried several formatting options, including XML, TXT, CSV and XLSX (Excel).

    With the help of the CVIXML is not an option (the less the way I tested it) since it does not accept Unicode in CVI. I did a little research and found out how to configure my XML file to Unicode, but whenever I try to read using CVIXML, the result is a failure. So I gave up this process.

    A .csv file is not a good option, because of how the file behaves in Excel. With characters Unicode, the file does not open as expected, and all my data is in the first column. If you are strictly using a text editor such as Notepad, you can read the .csv file and use it in CVI. The only issue is that you must compensate for the multiple byte characters, which I did not. So, because of the tampering of the .csv, I eliminated it as an option.

    So here's the solution I came up with that. I use the Excel Report commands (via excelreport.fp in toolslib).

    Using this method I can format my language options in Excel, view my Unicode characters and still open as planned in the CVI.  I just have to open my Excel file and load all the options of language in memory, and then close the Excel file.

    The only caviats are speed and Unicode does not appear correctly if your operating system is configured in a non-unicode format. This isn't a problem but it's a windows setting. In my typical American, unicode characters appear as? But if I change my localized language to, for example, Chinese then unicode is displayed normally.

    So, for now, this is the solution I've identified. Thanks for the tips. I hope that others will find it useful.

  • Dell order | Configure the utility crashing &amp; empty INI files

    "I'm using the" Dell order | Set up' utility 3.0 (formerly called the "Dell Client Configuration Toolkit") to set the setting in the BIOS for all our Dell business machines.
    We have a mixture of models of desktop & laptop.

    The utility is of course most of the working models, but will not properly work on some models.
    I am trying to use the "-o" option to create an "output file" with the current BIOS settings.

    1. when I try to run the utility with the "o" option on an Optiplex 745 or 755, the ini file produced is white with only the header and machine model number.
    None of the parameters are saved in the ini file product.

    2. when I try to run the utility with the "o" option on a Precision Workstation T5400, the utility just blocks a second after it is loaded. He never even finished running in order to produce any type of output of ini file.

    All models, including those with questions mentioned above, have the latest available BIOS version installed.

    Could you please help me to get this utility runs successfully on these three models with questions?
    I need to be able to configure them correctly in mass.

    Thank you.

    The command utility set up does not support OptiPlex 745 and 755 in accordance with the manual in the installation directory. This is the main reason, I always use the old CCTK since we have several 745 and 755 in production.

  • Copy the Application error

    I don't know where to start and am sure that this solution is somewhere in the forum aleady but I had the minimal chance to research.

    I would like to take our Production application, copy it and place it in a different workspace. I read the info on the site of http://joelkallman.blogspot.com/2010/07/apexapplicationinstall.html on how to use the apex_application_install script, but I'm not sure 'where' to run it. Our workspaces all sit on the same server - but I run Toad? Or do I try to run it from the actual workspace where I want to create the new application? I don't know that I even sense.

    The other thing I tried to do was 'Request copy' for our production application, but I get the error: you must set the install at least one script to copy the definitions of supported objects

    I did a search to generate an installation script, but I wasn't able to find anyone.

    Thanks in advance for your help.

    Rob

    I don't know what version of apex you use, but in point 3.2 there is an export/import button in the application generator page (same page where you have the button run the Application).

    For Apex 4, you can find details on how to export an application in this case:

    http://download.Oracle.com/docs/CD/E17556_01/doc/user.40/e15517/deploy.htm#BABICGJJ

    Luis

  • .exe white screen after you have used the application on a programme of work Builder.

    Hello

    I am new to Labview development and I have a problem.

    I changed an application to fit my needs and when I run it there is no problem (Labview 7 Express) in debugging.

    After using the application builder to build my new soft, I have a white screen at launch.

    I tried before using the application generator and succeed with this same software (when my changes were in progress), and it worked.

    Do anyone have an idea? You need more info?

    Thank you.


  • Transition from tables to call a library function does not work after the application builder

    Call a DLL with function of library to call that requires a data table to work properly in Labview, but after building an exe with the application generator, the call no longer works.  Dereferecing the pointer in the DLL returns all values 0 and not the real.

    So finally figured it out.  It seems that you cannot use the utilities of pointer in an exe built such asGetValueByPointer.xnode.  Once I replaced the calls with calls to DSNewPtr and MoveBlock library, everything works as expected.

  • problem updating the ini file ini file

    I get the ip address of the user's input and to replace the old IP in the .ini to the last ip address file but the problem is when a user enter the IP and I write it in my ini file it does not at once, but if I do it twise in calling the same function of my command button twise then my ini file is updated , it is the strage iniwrite function returnes success although on first attempt. I checked with breakpoint, but when I do it twise, then it is done, please guide me in detail, I am really amayzed by this strange behavior...

    I already gave you the exact order of the functions in my previous message!

    Ini file tool generates an object in memory that allows you to store and locate the values. This object can be filled in reading a file on the disk; Similarly, it can be saved to a file on disk. This is the very first operation and the last to perform if you want a picture to date of your values on the disk. There are three layers to consider:

    1. The file on the disk

    2. The IniText object in memory

    3. The variables specific to your program

    With this in mind, the right order to update the file on the disk so that it reflects the value that your variables have in memory is:

    Ini_New create the object in memory

    Ini_ReadFromFile fill it with the contents of the disc

    Ini_get('sendmail_from') read of the idebugprogramnode2 memory in your program variables

    Here tou can update the values of program

    Ini_Put update the object of memory with the contents of your variables

    Ini_WriteToFile save everything on the disc

    Memory Ini_Dispose clear

    As you save on disk before you call the Ini_Put functions, the disk image is not updated

  • access to the network for INI files

    Hi all.

    I have an application running on four computers.  Have access to a local file server.  All five computers running Windows 7.

    The four target computers search or create an INI file to save the test data for the products under test.  Occasionally, during the trial period, we observed INI related errors.  Specifically, the software starts the error of UIETooManyFilesOpen around either the Ini_WriteToFile or the Ini_ReadFromFile functions (and rarely the UIEIOError).

    The distance between the file server and the taget machines is less than 50 feet.  I made sure that the file server does not sleep.

    Access to the machines of the target file server is resolved simply by a path mapped in the form: "X:\folder\folder\."

    Should I do something differently for this type of topology?  I have considered restructuring the software as it does all of its newspapers written locally and only occasionally writing to the file server.  But I'm not clear why this particular error would happen in the first place.


  • Noise DC value of the ini file values

    Hello

    I am trying to build a generator of signals (sine, triangle, sawtooth, square random noise, DC). I managed to get the job of waveform using the signal generator of NOR built based on VI. but I want to add the DC case that I managed to do. but I want the values (magnitude and frequency) to be in an ini file. My idea is manual sets the values in the file, once I run the vi and select the case of DC noise, it should read the file values and the data output and once I have stop, it records the values of dc before returning.

    So, I'm stuck trying to figure how to do this. I hope that I was clear enough. I don't have a code to view since I haven't started yet coding on this part. Help, please.

    Clearly enough explained.

    Take a look at the screw configuration file, found in e/s from file > Config File live. There also many examples n the community, as well as in the Finder of the example, illustrating the use of these. A good starting point is the sample Configuration settings file write example Finder, and reading Configuration settings file.

    Your .ini file will look something like this, once created:

    [DC noise settings]

    Amplitude = 1.234567

    Frequency = 8.901234

    This is equivalent to:

    [Name of section]

    Key 1 = value

    Button 2 = value

    When asked to read a specific key in a certain section, VI only through the file for the named section, and then search for they key the name you provided it. Remember, you will need to know what type of data is when you read back.

    You can use VI writing to modify specific keys in specific sections as soon as you close the file.

    This is one of a multitude of methods, you can use to do this, but are probably the simplest.

Maybe you are looking for

  • The new FireFox30 means that I will no longer be able to see the text clearly without my PlugIn NoSquint?

    Dear FireFox,I have growing vision problems and must be able to define, or at least increase the tiny size website fonts, however based on peoples the terrible layout of their websites and the use of images, that I sometimes need to reduce the size o

  • NB200 Disabling USB Sleep & Charge

    I have a Toshiba NB200 last month and I noticed that the battery itself reject about 70 percent in two days, if it is not used. I found this forum by searching on this problem and found the following thread. http://forums.computers.Toshiba-Europe.com

  • ModtDestroySessionHandle does not release all memory resources

    Hello I have a program that attempts to do 1000 iteriations to read the message of the RF, but I get the error "not enough memory to complete this operation" popup. Look like memory leaks about 520 iterations. In this loop, I ModtCreateSessionHandle

  • I can't start my games for windows live

    I download it here http://www.microsoft.com/games/en-us/aboutGFW/pages/gfw3intro.aspxAfter finished downloading, I click on the launch button, and he says "you must sign in provider", then windows give me a link to download I download wllogin_32then

  • Wireless connection works intermittently

    My connection with my BT home hub wireless keeps defaults to "local access only".   When I contacted BT, they do not have to fix it by using remote access to my computer (I have an ethernet connection that disturbs that works).  They say it must be t