Page 1 of 1
Locate "c:\\Users\\Public" folder
Posted: Fri Dec 06, 2013 2:25 pm
by Leigh10
I am using IA Developer 8. Could someone please advise how to locate "c:\\Users\\Public" folder? I understand that I can use System->Profile to extract “c\\Users” but not the public part. The installation will have to be applied on German/French/Spanish etc OS, so I can’t just add “Public” to “c\\Users” considering that it will be OS dependent.
Thanks in advance.
Re: Locate "c:\\Users\\Public" folder
Posted: Mon Dec 09, 2013 11:56 am
by FrancescoT
Dear Leigh10,
try with acquiring the path to "document folder" for all users and then split the returned string.
Hope this helps you.
Regards
Re: Locate "c:\\Users\\Public" folder
Posted: Tue Dec 10, 2013 2:38 am
by Leigh10
Dear Francesco
Thanks for your reply.
The predefined system locations doesn’t include "document folder". Could you please advise how to get the "document folder"?
Regards
Re: Locate "c:\\Users\\Public" folder
Posted: Tue Dec 10, 2013 11:28 am
by FrancescoT
Dear Leigh10,
I am referring to "My->My Folder location" available with "Get Common Folder Location" command with having "Get for All Users" flag checked.
Honestly, I don't remember if the same was already available with IA 8.
Otherwise, you could create a custom DLL or an EXE that uses the "SHGetKnownFolderPath" WIN API to return that path.
hope this helps you.
Regards
Re: Locate "c:\\Users\\Public" folder
Posted: Wed Dec 11, 2013 7:20 am
by Leigh10
The “Get Common Folder Location” is not available in IA8 unfortunately. Will look into alternatives.
Thanks for your help.