How to change default directory of exe file

I have created a VI that reads a template and writes on the template and saves it to a new file. When i created to an exe file, I would like for this exe to be able to be used on any computer. As such, the directory where i will open my template will change on different computers. Hence I am having this problem of how to change my VI such that it will choose this template in a new computer and set it as its default directory.
I understand that in my own computer, I can simple "set current values as default" so that my VI will always open this file from a particular path. But what i need help with is when i put it on another computer where the particular path would definitely be different. I tried using the config file.vi but I could not understand how it is used.
Please assist me in this. Thanks

Hi Aaron,
Micorsoft suggest to use folders like UserAppData to store files for your own programs.
Put your template in there and use GetSystemDir function to get the UserAppData path...
Or you put the template in the program folder or one of it's subfolder (not recommended by MS) and use a relative path to load it...
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome

Similar Messages

  • Change default directory for Creative files (such as Media Databa

    I'm using a Zen xtra with WinXP Pro on my company laptop. The Creative software puts a lot of files (7 MB!) in my user profile under Document and Settings. Unfortunately, this is making my profile larger than my company allows, since they back up the profile over the network.
    How can I change the default directory for these file? I can't find any .ini files that might declare the path, and I can't find anything in the Windows Registry that points to my profile.
    Help please?
    Thanks,
    Luke

    Thanks for the suggestion of deleting the JetFileBackup folder, Micromouse. I'll try it.
    Any other files look deletable? Without any way to move them, I may have to try deleting some and see what happens.
    I'm not even sure which Creative programs can be uninstalled (other than Nomad Explorer) and still be able to use MediaSource to play songs from my Zen Xtra (through a USB connection). Windows Add/Remove Programs says that I've used all of these programs today:
    Creative Jukebox Driver
    Creative MediaSource
    Creative MediaSource AudioSync Plugin
    Creative MediaSource NOMAD Jukebox 2/3/Zen Plugin
    Creative NOMAD Jukebox Zen Xtra
    But all I've done is open MediaSource and start a playlist from my Zen Xtra. Anybody know which of those can be uninstalled without affecting my use? (Maybe this deserves a separate topic.)
    Thanks,
    Luke

  • How to change read-directory when using file adapter

    Hi, I'm deploying BPEL process to read files from a directory. I want to change the directory where to read dynamically. This can be achieved by using a file header variable. I know how to do this. But, the problem for me is that I can not find a place to assign this file header variable a correct value. The first step in my BPEL process is the receive-step and this has to be the first step. I wanted to place the assign-step before this step but this makes the BPEL process invalid. First step has to be a receive or a pick-step. So, now I have a dilemma! Anyone an advice on this?
    Thanks in advance.

    Maybe you can use this information :
    http://otndnld.oracle.co.jp/document/products/as10g/1012/doc_v3/integrate.1012/B14448-01/html/app_trblshoot.htm
    A.3.3 Common User Errors explains something about the fileheader messages

  • How to change default location of password file ?

    Hi all,
    Can i change the location of my password file from default to any other user defined location ?
    If yes then how ?
    Thanx in advance.
    Deep

    Dad you moved here?
    Can i change the location of my password file ?

  • How to change default value in "Project file" dialog

    I'm new to Labview, and I've encountered an example with a dialog that allows to define a path to a file.  If I open the properties on the block diagram of this block the name of the block appears to be "Path Properties: Project file:"   The default value points to a different place than where the file installed and the VI won't run untiI I change the path.  If I save and open the file, it doesn't remember the change.  When the vi is running I can right click the text and there is an option to reinitialize to default.  I've rooted around all over the place and can't find where this can be set or changed.  How do I change this? 

    On the front panel, change the control to the desired value.
    Now, right click on the control, select Data Operations and Make Current Value Default.
    -Matt Bradley
    ************ kudos always appreciated, but only when deserved **************************

  • How to change default compile directory tmp_ejb?

    Dear all,
    Someone knows how to change the default directory "tmp_ejb...." in WebLogic Server
    7.0?
    This is the default directory where WebLogic Server 7.0 generates and compiles
    the EJB's declared in config.xml.
    I try to specify the attribute TmpPath="ANOTHER_TMP_LOCATION_DIRECTORY_FOR_EJB"
    in the EJBContainer node but still doesn't work.
    The same thing happens when I test this attribute on EJBComponent declaration.
    Someone knows if there is an enviroment variable that specify this tmp_ejb location
    path?
    It's false that the tmp_ejb is located where the config.xml file is placed.
    I have 3 weblogic servers and they haven't the same behaviour.
    Someone can help me??????
    Thanks.

    I ran into the same problem and was wondering if you got an aswer the question you posted in BEA's news group: "How to change default compile directory tmp_ejb?
    Thanks

  • How to change default Ovi Player store ...

    Hi, 
    I need help from you people.  
    I had installed Ovi Player. Whenever I try to open Ovi Player, the default store gets’ open is "India". I change the store location to "Germany". When I do the search for particular music, it will again take me to "India" store instead of "Germany" store. In addition, most annoying is that I have to re-login but my user id and password will not work as its different store. Also when I go via music.nokia.de and try to login, it open Ovi player and since default location is "India", it takes me to India store and my login credentials do not work.  
    I ask Nokia care on how to change default Ovi Player Store location but they are unable to provide any good answer.  
    I already un-install / re-installed but won't work. Do any of you have answer to my problem? I want my default Ovi Player location to be "Germany" instead of "India".  
    More information, my regional settings have location as “Germany” and language as “English”.  
    Please help. 
    Thanks for your response.
    Regards,
    Subhendra
    Nokia N97 Black
    RM-505
    V12.0.026
    0586701
    Solved!
    Go to Solution.

    I had got message from Nokia on how to correct this issue. This had solved the problem. Below is the mail from them ...
    Dear Chakraborty,
     Thank you for your response.
     This error is sometimes caused by a corrupted MDataStore.db3 file used by the Ovi Player.  This file will need to be deleted with the Ovi Player closed.  Then open the player and the datastore file will be rewritten by the application:
     Close Ovi Music Player and delete the MDataStore.db3 file:
     Vista C:\Users\<user>\AppData\Local\Nokia\Nokia Data Store\DataBase\MDataStore.db3
     XP C:\Documents and Settings\<user>\Local Settings\Application Data\Nokia\Nokia Data Store\DataBase\MDataStore.db3
     Both of these locations are in hidden folders.  So, to view them users will need to: 
     Open Windows Explorer > Tools > Folder Options > View > Show Hidden Files and Folders
    Once Ovi Music is opened again the MDataStore.db3 file will be rewritten to this folder.
      After that manipulation try to install the Ovi Player once again:
     http://europe.nokia.com/explore-services/music/nokia-music
      Best regards
     Nokia Care Team

  • How to change Default editor in Linux for PL/SQL Programming

    Deare friends ,
    I am using oracle 8i (8.1.6) on RedHat Linux 7.2 , But i donot know how to change default editor for modify editor on sql prompt say ex:-
    In winodow
    SQL> ED
    it open nope pad to modify sql and pl/sql statement
    while in linux
    SLQ > ED
    it open one editor but it is not easy to work and i want to change that editor so could you tell me how to chane editor i want to use vi editor .
    if any boyd know reply me on :-
    [email protected]
    or on this forum
    Thanking you in advance
    Piyush Patel

    Either manually do a 'define editor=vi' when you log in through sql*plus, or put that in the glogin.sql in $ORACLEHOME/sqlplus/admin or put that in a login.sql in the directory you run sqlplus from.

  • How to change default encoding in DataBindings.cpx

    Hello,
    How to change default encoding in DataBindings.cpx,
    on windows-1251 for instance?

    I've filed Bug# 3147045 for this. Our DataBinding.cpx file and UIModel XML files seem to be getting hardcoded to use the ISO-8859-1 encoding. Our ADF Business Components XML files correctly pickup the IDE encoding.

  • How to edit default text in fla file

    I'm using an open-source Flash mp3 player. In comes in two swf versions. One plays a list of songs and displays the album cover(s). The other version just plays one song. The problem is that the single-song version loads some default text that I want to change (I was able to do this in the other version via the external playlist file). I'm a Flash newbie, and when I open the fla file the player's author provides, I can't find where this default text is located. (The playlist version works fine; its default text relates to what the user will get when they click on the file titles.) Links:
    Playlist version that works OK - http://www.keithpurtell.com/kthings/fripp.htm
    Single song version with wrong default text - http://www.keithpurtell.com/kthings/bjcole.htm

    SOLUTION:
    For the benefit of anyone else using the XSPF mp3 player, here is how to change default text. The XSPF player file is deployed to your server with your target mp3 files, whatever playlists you have created, and a file ending with the .as extension. The .as file contains the default text and can be changed with a good (free) text editor like NotePad++.

  • How could a button open a EXE file in any position?

    How could a button open a EXE file in free position?
    I am very confused, I am searching the issue for two days, I just could use fscommand function open a EXE file in a fixed opsition, where must be in the same root with the .swf(change into .exe form at the same time). but how I open the target in a position where I want? Is that possible in Flash?
    help!, thanks a lot~

    well you can publish the the other FLA, which would give you
    an HTML file, upload that and the SWF then link to the SWFs' HTML
    page.

  • Changing default directory for iTunes Library.itl and iTunes Music Library.

    I need to change the default directory for the files iTunes Library.itl and iTunes Music Library.xml permanently.
    It must be relocated from the My Documents directory due to VPN reasons.
    Has anybody an idea if this is possible? I could not find a corresponding registry entry.
    Notebook Windows XP Pro

    Using TweakUI to Move or Create Your Library/My Music Location
    Use TweakUI (See: ’Disk is locked’ or ‘iTunes folder cannot be found’ when installing or opening iTunes ) to create a 'My Music' folder in a spot where you desire. iTunes should then find this location and deposit its Library files there, and the 'iTunes' folder and sub-folders as well (if you direct it to).
    First, see this Article for some background information: What are the iTunes Library files?
    If you cannot see the ‘My Music’ folder within the TweakUI drop-down selection, proceed on to the following:
    1 On the start menu go to ‘Run’
    2 Type in RegEdit
    3 Navigate in RegEdit to HKEYCURRENTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
    4 Delete any entry for ‘My Music’
    5 Navigate up the tree to HKEYCURRENTUSER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders
    6 Make sure there is an entry for ‘My Music’ and is pointing to C:\Documents and Settings\[username]\My Documents\My Music (you can edit the value by double clicking it)
    7 Close RegEdit
    8 Reboot
    iTunes &/or TweakUI should now be able to find the folder.

  • How to change default approval for ResourceAuthorizerApproval ?

    Hi,
    I'am new in OIM and I follow documentation where I found some predefined workflows. I'd like to use them.
    Could you tell me, step by step, how to change default approval for ResourceAuthorizerApproval (only for my new defined resource).
    I'm using OIM 11g and Design Console 11.1.1.3.0.2.0

    Ok, I made new tamplate (copy of existing one), there I changed Template Level Approval Process and set allowed resources. It seems to be ok :)
    If there are other solutions please share with me
    Thanks
    M.

  • How to change default Current Flag values for SCD2?

    I'd be curious to find out how to change default Current Flag values for SCD2 (instead of 0/1 to use N/Y)
    Probably I can change IKM module .... is there another way?
    Thanks

    Hi,
    You need change the IKM. This values are hardcode in the IKM.
    You can create a new IKM and the values used are a options of the IKM.
    Regards
    Edited by: Uthred on May 18, 2009 4:27 PM

  • How to change default save as location

    hi,
    how to change default save as location in acrobat 7.0?

    Why is Acrobat involved in this process at all? Why don't you save directly the pdf from your email program directly where you want it to be? Acrobat is just adding another step to this process.

Maybe you are looking for