FieldPoint Family

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I identify an executable's path at run time?

I am developing an application for deployment as an executable
via an installation package. This application will need an
accompanying initialization file which will store user configurable
defaults (such as the root path to his data and other sundries).

I am familiar with the configuration (.ini) VIs, as well as the
application configuration file which resides in the same directory
as the executable (application_name.ini) which the run-time engine
automagically finds and loads.

The problem arises when I want to add a custom .ini file (or possibly
add custom entries in the application's existing file; can I do that?):

How do I identify the path to the file (which is the same as the path
to the executable)?

I have no final control over where the user installs his copy, so I
cannot use a hard-coded path to this file if I want this configuration
file to reside in the same place as the executable. I don't want the
application to not work simply because the user chooses to install it
somewhere other than the default place.

Bob
0 Kudos
Message 1 of 2
(3,168 Views)
I hate it when after an hour's searching I post a question
and then find the answer ten minutes later...

"Current VI's Path" on the file IO palette...

Bob
0 Kudos
Message 2 of 2
(3,165 Views)