cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
alan93
Level 3

How do I find : "C:\Users\All Users"

2010 broke it again.

I used to do this for my script programs.

GetEnvVar ( "ALLUSERSPROFILE", szAllUserDir );

It no longer works.

how do I get it now?
Labels (1)
0 Kudos
(1) Reply
alan93
Level 3

This doesn't work either

nFolder = 0x0023; // Known Folder constant for CSIDL_COMMON_APPDATA
svCommonDocumentsDir = "";
nResult = shell32.SHGetFolderPathA(NULL, nFolder, NULL, 0, svCommonDocumentsDir);

Like the previous it returns c:\ProgramData

I keep reading about running setAllUsersProfile2K with custom actions. Where is custom actions?
0 Kudos