From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
03-31-2009 02:46 AM
Hi
Is there any way to find dynamically the "Application Folder" on LabVIEW?
For example, if i have windows on another language, the application folder won't be the typical:
C:\Documents and Settings\All Users\Application Data\
I already tried to use the property node "App.Default Application" but i can't use this do get a path.
Thanks
Solved! Go to Solution.
03-31-2009 02:59 AM
Does the path constant "Default Data Directory" work for your needs?
hope this helps,
Norbert
03-31-2009 03:26 AM
Hi
The path constant "Default Data Directory" does not work sorry:(
Default Data Directory:
C:\Documents and Settings\user\My Documents\LabVIEW Data
I guess there is no LabVIEW funtion the Application Folder dinamically. Perhaps only if i implemented...
Well, thanks anyway:)
04-01-2009 08:37 AM - edited 04-01-2009 08:38 AM
Hello.
You can have your application path like this:
regards.
04-01-2009 09:11 AM
That only returns the folder where the VI is located, not the Windows User "Application Data" folder, which is a "special" folder.
To get the "Application Folder" you can user either .NET or the Windows API. For .NET you can use the Environment.GetFolderPath method. For the Windows API you can use SHGetFolderPath.
Here's the .NET method: