How to open a configuration file with a relative path?

I want to open a configuration file when my application is initialized (first 'State', you can tell) and I use 'Open file.vi Config' and tried to pass the path of the config as 'data\myconfig.ini' and the 'File exists?' vi gave no error (simply, the exit is 'false') but the config Open leader gave an error.

If I spend an absolute path "D:\xyz\xyz\myconfig.ini", it works fine. Is not is it possible to use the "relative path" I recall using it before searching for other tasks?

I'd rather have this file in the folder "data" my application setup will create the destination directory during the installation of the application, because it won't be easy when I want to ask the user to open and modify. Or, I just put it in "C:\". "that exists on all windows computers, but it would be too open.

Thanks in advance!

hope this helps:

Tags: NI Software

Similar Questions

  • How to open a text file with Notepad to labview vi?

    Hello

    How can I run a program of a vi?

    I want to open a text file with Windows7-block-notes after a file-path-control selelecting and pressing a button.

    Thx for the help

    Another option is the URL opened in VI of default browser located in the HUD assistance. If you use the path to the string function, you can feed the result as a URL, and the Windows shell knows the default program-oriented, which is Notepad.

    Edit-

  • How to open a media file with a .wmv on my iMac extension

    How to open a file on former support with the extension .wmv on my iMac?

    To my knowledge you can't, not without having to buy something like Flip4Mac, that allows you to play .wmv files.  As this is a Windows Media file, you cannot open it on a Mac without help, and help usually costs $$$.

  • How to open an EPS file with embedded fonts / missing without losing the appearance of these fonts?

    I often work with graphics created by others in a variety of programs (Matlab, GnuPlot,...). Sometimes, they're sending me EPS files with fonts "embedded", but when I go to open them in the CS6, I get the box alerts missing fonts / substituted.

    I also tried ' site > flatten transparency...» "as you can do with a PDF file, but I encounter an error indicating"related work that interacts with transparency can be flattened. Incorporate the work (using the links Panel) before flattening. "When I try this, I get once the box alert missing fonts / substituted.

    Someone at - he encountered the same problem and find their way around it?

    I solved the problem, so I just came back to share:

    I open the EPS file in Mac preview and it has exported to PDF.

    I then followed the procedure that I listed above to open the PDF files.

    Hope this helps everyone.

  • Open Save dialog file with the default path

    Hi all

    I want to open a "file save dialog box' with some default path.

    As when the user run this script I want to open a dialog box "save under" with the default path "/Volumes/ < noun > / < folder name > /...» »

    I use

    File.SaveDialog(prompt, filter);
    

    but it does not open in the default location, I want to open.

    Thank you

    Hard

    Look at this thread to see if it can help

    http://forums.Adobe.com/thread/1077267?TSTART=0

  • How can I best configure files with external SSD?

    Hello

    I want to install an external SSD as boot on an iMac of 2012 drive, but I don't have enough space for all my files and documents.

    I plan on backup and by installation tasks and using the migration wizard to change apps and accounts internal users through the SSD from the HARD drive.

    The main question is my videos, pictures (including the photo library) and iMovie projects (and associated files), so I was planning on uncheck the video files and images in the for the corresponding user accounts migration wizard.

    My questions are:

    1. This sounds like a reasonable plan?

    2. what happens to the folders/files I leave on the drive HARD internal and how I "reconnect" them with the OS on the SSD? *

    * i.e. is there a new folder of videos or photos on the SSD and in the Finder, or Mac would automatically know they were still on the internal drive?

    Thank you

    Why not just get a larger SSD

  • How to open an Indesign file with a missing plugin

    Is it possible to open a file that has a missing plugin?

    This is the case:

    We used an outside designer who is on indesign CS5 and cup of tea barcode software plugin cs5

    We have received his files in CS4, but it's always tell us that there is a missing plugin.

    I guess it's a Teacup Software. Is there a way to get around this?

    Unless the plugin is really necessary for the file opens correctly, exporting to .inx and recording as one new .indd should remove the plugin information.

  • How to open a CAD file with extension .sat?

    Several forums have told me directly Adobe Acrobat DC that I just downloaded and now know that it is not possible? Others noted the Adobe 3D Reviewer, but this seems not available? Now what? Thank you...

    Thank you for that. Acrobat that 9 Extended contained a number of Adobe technologies have abandoned third parties, so if DC is not mentioned, it is not supported.

  • How can I remove a file with the long path?

    I got a file and when I try to delete it, it says: the file path is long.

    Thank you
    Angelina

    Hi Angelina,.

    Thanks for posting the request in the Microsoft Community.

    1 are. what file you referring?

    2. the problem occurs for a specific file?

    To resolve this problem, you can try renaming the file and try to remove. Check if the problem persists.

    Alternatively, you can check the link for more information:

    Error message too long path when exceeding MAX_PATH

    I hope this helps. Let us know if you need more assistance.

    Thank you.

  • How to open an .exe file in windows 8 with compatibility mode to windows 7

    How to open an .exe file in windows 8 with compatibility mode to windows 7

    Normally, you can double-click on the Setup file and install the application. If the program requires the compatibility mode, you can do the following:

    http://techingiteasy.WordPress.com/2013/07/08/using-compatibility-mode-in-Windows-8-1/

  • How to open the pdf files from hotmail.

    OMG no body can help with this question, how to open the pdf files from hotmail

    OMG no body can help with this question, how to open the pdf files from hotmail

    Told you that you need Adobe Reader, which is designed to open pdf files?

    Download Adobe Reader:

    http://www.Adobe.com/products/reader.html

  • How to open a themepack file?

    I don't know how to open the themepack files - can someone please give me detailed instructions on this? Thank you.

    Hello

    On WIndows 7:
    Just do a top doubleclick to install the Pack. That's all.

    On Vista.
    Open with 7zip and extract the background image in a folder of your choice. Now, select, do a right-click and select "use as background image".

    André "a programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • How to open a .mbk file

    How to open a .mbk file

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    http://www.ehow.com/facts_5695093_file-extension-MBK_.html

    http://www.computerfileextensions.com/file-extensions.php/MBK

    http://dotwhat.NET/MBK/3891/

    Read what precedes the name of the program: Atari, dBASE IV several backup Index,VersaPro movement block backup

    See you soon.

    Mick Murphy - Microsoft partner

  • How to open a .vnt file in windows 7?

    How to open a .vnt file in windows 7?

    If it is a file of notes from a mobile phone, you can open it with Notepad. However, according to the manufacturer, it may be encoded and it will be more readable.

    You can try to use your favorite for the .vnt file search engine to find a suitable software. I would avoid anything that resembles a paid ad and exercise extremely prudent.

  • When I try to open a PDF file with adobe Acrobat reader Windows Media Center automatically appears.

    When I try to open a PDF file with adobe Acrobat reader, windows media center automatically opens. How to prevent this? I just want to open the PDF file with Acrobat reader.

    The solution I think. If you right-click on one of the files and select open the file locations it now combined the file with adobe reader.

    Yes - you simply need to change the associated file (and path) back to Adobe Reader.  (If that's your choice PDF reader.)

    If you did this:

    Press the Windows Logo and R key at the same time to bring up the dialog box RUN.
    Once you have the dialog box up, type in the following command and press OK...

    cmd /k ftype AcroExch.Document

    That he return with? Should be something like:

    AcroExch.Document = "C:\Program files (x 86) \Adobe\Reader 10.0\Reader\AcroRd32.exe" '%1'

Maybe you are looking for

  • Administrator password problem

    I have a HP Pavilion dv7 laptop running Windows 7.  I have problems with it starting and leaving me with a black screen with just my cursor showing.  I can't do anything with it.  I could get the command prompts at the start to where it gives me the

  • I can't open certain web links

    I can open some websites at one point, but no other links. Food52 opens but won't link to revenue. The library web opens but not the link to download books. I called Time Warner, and they couldn't help.

  • My automatic paper feeder sends the paper in the scanner/copier a little twisted.

    Photosmart C309a Mac OS lion no error message All pages get expelled through the charger just a little twisted, about 5 to 10 degrees.

  • SmartNet?

    Hello, I am trying to get a smartnet or account something Cisco where I can legally download the ASAv961, qcow2 so I can use the SAA in my GNS3 program for studying certifiication. Spent an hour on the phone where I've been four times before being...

  • Create or replace Stored procedure

    Hi all11.2.0.1I have the HR schema/user, who is the owner of all tables in the app.Then, all his paintings are also granted to BATCH - HR user with corresponding synonyms.This batch user will be used by computer operators to run reports of generation