LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing appdata for labview executables

Solved!
Go to solution

Looking for the best practices method using the appdata folder for the windows operating systems 7x and later.

 

 

Labview contains some default file path tools, such as temporary filepath which navigates to %USERPROFILE%\AppData\Local\Temp\

 

Is there a method to access just %USERPROFILE%\AppData\"application name" for compiled applications?

 

What would be the best method of programmatically setting the default appdata folder for an application?

 

 

 

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 1 of 3
(4,207 Views)
Solution
Accepted by topic author eximo

Eximo,

 

I’m having a little trouble understanding exactly what you are asking.  If you wish to access the file path that the application is located in you can use the application directory block.  If you just want the AppData folder you can use the Get System Directory VI as detailed in the following article.

 

http://zone.ni.com/reference/en-XX/help/371361H-01/glang/get_system_directory/

 

You may experience issues when accessing this folder with the popup file browser because the AppData folder was change to a junction in Windows 7 and later versions.  You can read more about this change at the following links.

 

http://answers.microsoft.com/en-us/windows/forum/windows_7-performance/where-can-i-find-application-...

 

http://windows.microsoft.com/en-us/windows-8/what-appdata-folder

Message 2 of 3
(4,164 Views)

That had article had all the answers!  THANK YOU

-Regards

eximo
_______________________________________________
UofL Bioengineering M.S.
Neuronetrix

"I had rather be right than be president" -Henry Clay
0 Kudos
Message 3 of 3
(4,148 Views)