03-18-2007 08:05 AM
03-19-2007 02:40 AM - edited 03-19-2007 02:40 AM
Hi Raistlin,
(If you haven't already found it) maybe the "Application\Default Data Directory" application property is close enough(?)
Cheers.
Message Edited by tbd on 03-19-2007 02:42 AM
03-19-2007 02:50 AM
03-19-2007 05:21 AM
03-19-2007 05:53 AM
Raistlin,
There isn't a direct way (function) to find back the folder you want. So you need to construct the function you want with the built-in tools of LabVIEW.
Regards,
03-19-2007 06:20 AM
03-19-2007 07:02 AM
Look into the windows xp environment varaibles %Homepath%
http://vlaurie.com/computers2/Articles/environment.htm
Search environment variables in the forums.
http://zone.ni.com/devzone/cda/epd/p/id/4986
http://forums.ni.com/ni/board/message?board.id=170&message.id=139711&requireLogin=False
03-19-2007 09:48 PM - edited 03-19-2007 09:48 PM
Hi Raistlin,
Julien's suggestion is much "cleaner" than using the app property and appears to return the same path. Note: I added the following text to Labview.ini:
"DefaultDataFileLocation=C:\"
... and both the App property and the program-constant reflected the new path.
I'm curious what value is returned for DefaultDataDirectory on a Linux box(?) - and is there a similar file - for instance "LabVIEW.conf" - where LabVIEW's defaults can be set?
Cheers!
Message Edited by tbd on 03-19-2007 09:49 PM
03-20-2007 03:10 AM
03-23-2007 09:03 AM
To get to the APPDATA directory, you should use the recommended Windows way of calling SHGetFolderData instead of building and stripping, as this will work in different languages, versions, etc.
I think I remember seeing an implementation on the LAVA forums.