Relative path confusion. !

Hello

I don't have the following situation:

Development approx.:

c:\x\y\temp.VI<---- my="" top="">

c:\x\y\ini\conf.ini<---- config="">

Run time PC:

c:\Program files\test\temp.exe

How to set a path relative to my conf.ini file now? With the function of band (twice), it doesn't work and and conf.ini file is not on my PC run time. On the dev Env. There is no problem to find the conf.ini file.

Thanks in advance

Why my executable does not work when you use the constant path of the current VI?

Tags: NI Software

Similar Questions

  • the frame in the frameset is not the relative path correctly

    http://www.autogamma.com/FastSP/catindex.html

    Click on 'PUMP LAVACRISTALLI' > "Quick Codice" > "PL100.
    images do not work
    In IE and Chrome images work fine

    The frame with PL100,... link to "pompe\PL100.html",...
    Target is the frame named "MAIN".
    In this context, the relative address is lost: the frame does not take the correct relative path, with a new subdirectory "pump".
    Path of the images remain.

    These links have the backslashes instead of slahes forward:

    <body><center><font size=2>CODICI FAST</font><br>
    <a href='pompe\PL100.html' target='MAIN'><font size=2>PL 100</font></a><br>
    <a href='pompe\PL101.html' target='MAIN'><font size=2>PL 101</font></a><br>
    <a href='pompe\PL102.html' target='MAIN'><font size=2>PL 102</font></a><br>
    <a href='pompe\PL103.html' target='MAIN'><font size=2>PL 103</font></a><br>
    <a href='pompe\PL104.html' target='MAIN'><font size=2>PL 104</font></a><br>
    <a href='pompe\PL105.html' target='MAIN'><font size=2>PL 105</font></a><br>
  • TestStand API: Define the relative path

    Dear community NOR!

    Could someone, please, with the following - is there an option to set the path to code modules, within the test sequence, to have a relative path, but not absolute? I add programmatically in code modules to the steps of the sequence, but currently, they have an absolute path. Is it possible to change it to relative with TestStand API?

    Thanks in advance.

    I was wrong. It is possible to manually cut path to the file (TestStand directories search function). Then, will add the modules of code with relative paths. But be careful - path should be cut properly.

    For example, I have the full path

    E:\Development\source code\supplementary\TestVIs\ Code Modules\Service\Print.vi

    My search directory is

    E:\Development\source code\supplementary\TestVIs\

    So, I need to cut like this:

    Code Modules\Service\Print.vi

    and without a bar slash at the beginning!

    Then it will be OK.

  • UDL connection with relative path database file

    Hi all

    I use the shipper of the property to retrieve the test of the database settings. I Specifies the database to read by using a .udl file.

    When opening a connection to database (using the step of database type) open I'm able to specify the location of the .udl file as follows:

    "FILE NAME=C:\\Development\\IW_EST_2\\TesterSoftware\\TS\\Database\\DatabaseConnection.udl;"

    It works fine for now. However, I'm developing on the computer that will be deployed on the sequence. It is for this reason that I would use a relative path.

    Is it possible to do? If so, how?

    Thank you very much

    Cam.

    You can use a UNC naming convention to specify the location of the UDL.

    A UNC name will replace a drive letter with a machine name and the share name.

    Example of a connection string, I use every day:

    "FILE NAME=\\\netapp1\\shared\\STE\\SPOTS.udl".

    (note that the quadruple backslashes before the name of machine)

  • How to keep a relative path in a global variable

    Hello

    I use Teststand 2013 and 2013 of Labview

    Is it possible to set a relative path to a global variable in the Teststand? E.g. "... \vector1." HWS.

    Or should I use Labview functions to solve this problem?

    .

    Thank you

    The railways are much easier to handle in LabVIEW.  Thus, you can store the relative path as a string and then use LabVIEW to make the absolute path.

    I usually store a file into a global variable and then I can just concatinate the strings to build the absolute path.  For example:

    FileGlobals.Folder = "C:\\foo\\bar\\"
    Locals.Path = FileGlobals.Folder + "blah.txt".

  • How can I specify relative path to file Subvi to screw?

    I use LabVIEW 2009 Service Pack 1.

    SubVIs are referenced by absolute paths, so when I move to a new folder I may need to adjust their paths again.

    How can I make a Subvi make reference to a relative path that I do not have set his path after you move the screw in a new folder or a new player?

    I think that the SubVIs are referenced internally by relative paths. Once you move the whole project in a new place, he should find everything in the new relative paths.

    Where have you encountered problems?

  • Relative paths of the gateway requirements

    So I am using requirements gateway for a little while now and I are one of several developers to use, or one of the many people now the documents it contains.  We keep the Gateway project control requirements of source code with the documents and the project code in that respect.

    We met one of the problems was that this gateway requirements is configured as an absolute path if the path is not under the gateway requirements project path.

    Let's say I have a directory like this structure.

    \Requirements Gateway\ Q:\Project\Project [x]

    [X] Q:\Project\Project [x] \Project Documentation\

    Q:\Project\Project [x] Code\ [x] \Project

    When you add documents to the gateway requirements project it will add them however travel.  So if another developer gets the source on the V:\ drive control then it can not find documents or code.  We found that you can manually change the path of the documents to have a relative path by editing the .rqtf file manually in a text editor.

    Finally the problem.  This solution does not work for code TestStand or paths of LabVIEW code... why?  If I replace "[x] [x] Code\ \Project Q:\Project\Project"with"[, \Project[x] Code\ ' in the .rqtf project file and then open the project, it will say file not found.  The file may have been moved or deleted.  But all the documents that are configured to have relative paths work fine.

    Can someone tell me how to get access roads-related work for LabVIEW and TestStand code in Gateway requirements?  Thank you.

    Hooovahh-

    It is currently a lack of functionality for our types of TestStand and LabVIEW OR gateway 1.1 requirements. This is something that will probably fix us in the next version or Gateway requirements.

    Thank you for that bring to our attention.

  • 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:

  • How to build a correct relative path?

    I watched this on the Microsoft Web site, but their views did not work. I have an application called Notepad ++ in my programs folder. The documentation says that so that the spell check function works, I have to include in the configuration of Notepad ++, a relative path to a specific dll in the folder programs. This is the relative path, I built that does not work. Any tips?

    .. \Aspell\bin\aspell-15.dll

    Hi okieseeker,
     
    This problem occurs with a third-party application, I suggest you to contact the manufacturer of the application for assistance on this issue.
  • How to create a shortcut with relative path

    Hi all

    I'm a Linux user, so I don't have enough experience to solve this problem.

    How can I create a shortcut with relative path?

    Usually it is easy to create a shortcut with the absolute path for example:
    Windows accepts shortcut path with absolute c:\bin\app.exe, but he does not accept the following relative path:
    .\bin\app.exe

    Hi mbnoimi,.

    Thank you for using the Microsoft Answers Forums!

    To make a shortcut path parent here is a simple solution. Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the
    The shortcut properties.

    Follow these steps:

    Make a new shortcut to: cmd.exe /c start.

    Now, right-click on it and get the properties of the shortcut (shortcut tab).

    The shortened full path must have been set to this:
    %windir%\system32\CMD.exe /c start.

    Set the directory to "start in" (i.e. DLG) to be a relative path:
    (Example for a shortcut on the desktop

    )
    ...\SendTo

    Click on "change icon...". "and set" look for icons in this. "
    "file:" to:
    %SystemRoot%\system32\shell32.dll

    and press ENTER. Standard folder icon will probably be in the
    bottom right.

    Now you can copy this file and simply change the "start in:" directory
    to book new related shortcuts.

    NOTE: The steps above are just an example so try this at your own risk. And check if it works.

    Hope this information was useful.

    Let me know if it worked.

    All the best!

    Thank you and best regards,

    R uma - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Urgent: how to create a shortcut with a relative path?

    I put a set of files and folders nested on a server on a network location.  (Use of office machines Vista; I don't know that the server is running.  The files are a text file and two Office 2007 files).  Users will copy this set-up files on their computer (there is a program of VBA macro in a Word document, they need).  They need tomorrow (Friday) and the shortcut path gives me fits!

    The hierarchy looks like:

    MainDir
    File.txt
    SubDir1
    Shortcut to the Word file
    SubDir2
    Word file
    Excel file

    I don't think even the paths associated with the shortcut until I looked a little deeper.  Because I put all the files and folders together on my computer, when I did a drag - move in the folder on the server, the target properties and start in the shortcut always pointed at my computer!  So now, I'm afraid that a user copy this on their machine will have a shortcut that points to ~ my ~ computer, instead of the file on their computer.

    I deleted the shortcut located on the server and creates a new one from the Word file in the directory on the server.  Better - I think - but it still points to the location of the server.  And it is even more likely that, when the user opens the shortcut, it will try to open the file on the server, vice the file on their computer.

    How can I create a shortcut to this Word file that will pick up the relative path from around where to reside?  I can just click > properties and change the target and start in paths?  Or do I need a VBScript or VBA?

    I have to get this done fast!  A kick - in the right direction is greatly appreciated.

    Ed

    Hi Ed,

    It is not possible to create a shortcut with a relative path.

    You can try the following allows to bypass and check if it helps:

    Create a shortcut to cmd.exe running the start command to open the current directory. Then set the MDC in the

    The shortcut properties.

    a. make a new shortcut to: cmd.exe /c start.

    b. now right-click on it and get the properties of the shortcut (shortcut tab).

    c. the shortened full path must have been set to this:

    %windir%\system32\CMD.exe /c start.

    d. set the directory of "start in" (i.e. DLG) to be a relative path:

    (Example for a shortcut on the desktop)

    ...\SendTo

    e. click on "change icon...". "and set" look for icons in this file: "to: %SystemRoot%\system32\SHELL32.dll and press ENTER.

    Standard folder icon will probably be in the lower right.

    f. now you can copy this file and simply change the "start in:" to make new related shortcuts directory.

    NOTE: The above steps are just an example, so try this at your own risk. And check if it works.

    You can also read the following article and check:

    Folder redirection fails when you specify the mapped network drive or the Environment Variable

    http://support.Microsoft.com/kb/321805

    You can check out the following link and also post your request in the Technet forum for further assistance:

    http://social.technet.Microsoft.com/forums/en-us/winserverPN/threads

    Hope this information is useful.

  • Relative path of Windows shortcut file

    Hello

    I have the complete file of PDFs (hundreds of them) and I need them zip. I need also make a shortcut of one of these pdf files in this zip and rename it, so it is recognizable among others. But when I do a shortcut, zip of PDFs with the shortcut and delete the original files - inside the zip link stops working.

    I have a question if I can have this shortcut in the relative path, so it is not dependent on the original data, and if it can work inside this zip (as well as inside the folder) any absolute path is.

    Can someone help me? Is it still possible?

    Thank you very much

    Nobody has never reported a method to create shortcuts on Windows.  A lot of people seems to have attempted; If you are looking for relative shortcut in this forum you will see other threads on the subject.

  • Creating a shortcut with relative paths

    I'm trying to set up a folder so that I can copy a group of files from USB drives, and I want to place a shortcut to open the Powerpoint Viewer into a subfolder of this folder to copy.   When I put in place a regular shortcut, it creates the full path: 'C:\Users\xx\Documents\Thumb Drive Files\With CAD Drawings\Product présentation Files\pptview.exe training', and when they are copied on a USB key, it will not work because it seeks the path 'C:', rather than the relative path in the folder, \With CAD Drawings\Product Training Presentation Files\pptview .exe.  I don't remember how to set this up with relative paths.

    You can't go with shortcut, you use a batch file on the root of the drive that has an order of relative path for the first command in it.

  • Links-relative path?

    I created a PDF file for presentation to a client.

    There are other PDFs to be accessible during the presentation at certain points.  I put the 'Link To A File' links to the right places in the main PDF file and stressed these secondary PDF.

    I've included with the main PDF file PDF secondary.  Everything is in a single folder with no subdirectory.

    So when I send my client, the file zipped with all PDF files, why is that when my client is by clicking on the links in the main PDF file it is looking for these secondary PDF on MY hard drive!

    I hunted a solution for using relative paths, but Acrobat is emphasizing the ABSOLUTE use, and what he asks me gene huge with my client because I can't make it work for him.

    See you soon

    The path is not absolute, even if it looks like that. You can easily test and see for yourself. Move the file to another folder, and you will see that the path of the link changes with it.

    The problem is probably caused by viewing the file on an iPad. The file system on mobile devices is quite different from 'normal' computers, so I'm not surprised that the links to other files work. In addition, it depends a lot on what app is used, but I think that in this case, it would not matter much.

  • Relative paths for links

    Hello

    How can I configure the AI CC document-relative paths? For example, if I have a folder like structure

    .../Project

    .../Project/Source-images

    .../Project/AI-scripts

    .../Project/actual-AI-files

    you get...

    so now if I save the project on an external hard drive folder or anywhere else where I have to update the paths for all my documents in/Project/actual-I-files that are related to the files/Project/Source-images and/Project/HAVE-scripts, although the relative path remain the same. Can I use relative instead paths?

    Thank you

    Unfortunately you can not do.

    Only chance is to have all the files related to the same level as the file HAVE (no subfolders)

Maybe you are looking for