Stuck, out of ideas
I know I can use the following in script to get Public/Public Documents:
function GetPublicDocPath: String;
begin
Result := GetSpecialFolderPath(46);
end;
And $path = exo_return_hescriptcom ('UserMain.GetPublicDocPath', '');
But what I need (or rather customer specifications) is get just the “Public” directory.
To be clear, I need to use C or system drive:\Users\Public
Please help me out.
Not sure how to use this information, but basically what I need:
In Windows Vista and later the documents, music and video folders were moved out of the %ALLUSERSPROFILE%
folder and placed in a new folder called Public (“c:\Users\Public”) and can be found with %PUBLIC%
. CSIDL_COMMON_APPDATA also got a environment variable called %ProgramData%
and because most of the other folders moved to %PUBLIC%
it was decided that %ALLUSERSPROFILE%
did not need the Application Data subfolder so %ProgramData%
is the same as %ALLUSERSPROFILE%
.