LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Getting the My Documents folder pathname from CVI

Hi,

Can anyone tell me if there is a way to get the pathname for the My Documents folder for the currently logged on user from CVI. The SDK help mentions it mentions objects and properties and I'm not sure how or if these can be utilised from within CVI.

Thanks

Jamie Fraser
0 Kudos
Message 1 of 3
(3,356 Views)

Jamie,

This should do it:

RegReadString (REGKEY_HKCU, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Personal", 
         resultstring, PATHLEN, &keysize);

You'll need to use the programmers toolbox (..\toolslib\toolbox\toolbox.h) .

--Ian

Message 2 of 3
(3,349 Views)
Thanks Ian.
0 Kudos
Message 3 of 3
(3,325 Views)