05-15-2016 03:10 PM
Hi there,
I am trying to create an application which uses my project's relative folder path in order to save an text file into the same folder (so that I do not have to rewrite the build path when I run my application on another computer, for instance). I've made some research, but I could not find anything that would solve this issue.
How should I do this properly?
05-15-2016 03:32 PM
See "file constants" palette.
There are you can find "current vi path" and "application directory" constants.
05-15-2016 04:09 PM
Okay, but what should I use in order to specify the name of my text file?
05-15-2016 04:48 PM
Call your text file whatever you are planning on calling it!
05-15-2016 05:08 PM
05-15-2016 05:15 PM
@Artem.SPb wrote:There are you can find "current vi path" and "application directory" constants.
Just to be completely clear here, since we are talking about files outside of an executable, you want to use Application Directory. Current VI Path is useful for making dynamic calls to VIs within an executable.
Now for the actual problem at hand, just use Application Directory and a Build Path. The "name or relative path" input of the Build Path should be pretty self-explanatory.