LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application "support directory"

Is there anyway to programmatically get the Application support directory as specified in the Application (EXE) Build Specification in an LV8.5 project? The one by default named "data". Currently I get the application directory, then build a path by appending "\data\whatever_file.txt" to get a path to a support file.
 
Michael
0 Kudos
Message 1 of 4
(4,071 Views)
What might be better is to create your own custom support directories in you build specs, this way you can ensure you always have the correct folder.
One thing to mention it is a bad habit to use string functions (with a '\' seperator) when dealing with paths. Building paths with the 'Build Path' primitive is platform independent:


Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 4
(4,053 Views)

Custom support directories would work, it does seem silly not to be able to programmatically get the support directory though. Maybe I'll make a product suggestion.

I do use the Build Path primitive, thanks for the heads up on using the '\' seperator. I guess to make it platform independent I'll have to use two Build Paths to first build the support directory (data) then the filename(whatever_file.txt)

Michael

0 Kudos
Message 3 of 4
(4,025 Views)
Hi Michael,

you should check out the OpenG VIs.
With the Application Path I created the following VI:

It will return a path linked to the SupportFolder\ResouceFile.txt
On a LabVIEW development envirenment it will return the path to the LabVIEW x.x\SupportFolder\ResouceFile.txt file

Ton



Message Edited by TonP on 05-19-2008 07:22 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 4
(4,007 Views)