ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

public folders

Solved!
Go to solution

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?

Jim

LV 2020
0 Kudos
Message 1 of 6
(4,009 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(4,007 Views)

There are a number of folder constants, but the public folder is not one of them.

Jim

LV 2020
0 Kudos
Message 3 of 6
(4,005 Views)

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.


___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,995 Views)
Solution
Accepted by lmtis

Hi Imtis,

 

have you really looked into the help for the GetSystemDirectory function? Type 6 = "public documents"...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 5 of 6
(3,983 Views)

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!

 

Jim

LV 2020
0 Kudos
Message 6 of 6
(3,964 Views)