02-27-2013 01:38 PM
I have been saving data in the public documents folder on WinXP machines. C:\Documents and Settings\All Users\Documents\National Instruments\Data
I have just gotten a new machine, and it has Win7 on it. The path to the public folder has changed. Is there some way to programmatically find the path from windows?
Solved! Go to Solution.
02-27-2013 01:42 PM
The constants subpalette (or whatever it's called) under the file palette has a VI which returns paths to specific system folders. I assume this folder is one of them.
02-27-2013 01:47 PM
There are a number of folder constants, but the public folder is not one of them.
02-27-2013 02:10 PM
Then I'm assuming that you can get it using the .NET GetFolderPath method - http://msdn.microsoft.com/en-us/library/system.environment.getfolderpath.aspx
I don't remember what the equivalent Win32 method is off hand.
02-27-2013 02:34 PM
Hi Imtis,
have you really looked into the help for the GetSystemDirectory function? Type 6 = "public documents"...
02-27-2013 03:41 PM
I saw that file, but thought that it just gave the location of the OS. Didn't THINK to look at the help. You are correct Gerd. Thank you!