01-08-2013 05:34 AM
Hi all,
I'm using LV 2012. Is there a way to find the location of the <userlib> directory programmatically? I've seen the old stuff about the private Application->Resolve Symbolic Path method, but that is now deprecated. Is there an alternate solution?
Thank you,
Zola.
01-08-2013 05:57 AM
You can use the vi lib path function and get the user lib path as shown below (Available as a function in OpenG)
01-08-2013 06:15 AM
I believe you are correct regarding the function being deprecated, but this old VI from the LAVA forums loads and functions fine with my LV2012 32 bit installation.
http://lavag.org/topic/10549-resolving-symbolic-paths/#entry62790
I wouldn't include it in any distributed / compiled code but it could still be useful for writing private / throw-away type development tools...
01-08-2013 06:38 AM - edited 01-08-2013 06:39 AM
To P@Anand - Thank you. That works fine in the development environment. My problem is that I need to build an exe that knows where the LV installation is, and where the user.lib is inside of that. If you use this solution in a built program, it gives you the location of the user.lib in the build, not the location in the LV installation.
01-08-2013 06:41 AM
To PhilipBrooks - Thank you. I only need this for an in house tool, so I might need to resort to that.