El_Esteban Posted January 18, 2010 Share Posted January 18, 2010 (edited) Hello, i have a problem with %ALLUSERSPROFILE% variable, i use it in WPI.Before, in Windows XP i use the variable %ALLUSERSPROFILE%\Desktop without any problem, the problem start in Windows Vista and later in Windows 7, the path changed "C:\Documents and Settings\All Users" to "C:\Users\<user>\AppData" on some it is mapped to "C:\ProgramData" or "C:\Users\Public"Does i have a variable to work in Windows XP, Vista and 7, in new formated systems and in old formated systems ?I see that usually, depending the manufaturer the paths changes.I think that the variable %USERPROFILE% Works in all, but i like to use %ALLUSERSPROFILE% for example for making shortcuts for all users.Sorry for my english and Thanks Edited January 18, 2010 by El_Esteban Link to comment Share on other sites More sharing options...
Kelsenellenelvian Posted January 18, 2010 Share Posted January 18, 2010 %CSIDL_COMMON_DESKTOPDIRECTORY% Needs to be added to the variables section for Vista and 7. Link to comment Share on other sites More sharing options...
El_Esteban Posted January 18, 2010 Author Share Posted January 18, 2010 %CSIDL_COMMON_DESKTOPDIRECTORY% Needs to be added to the variables section for Vista and 7.Hello, first, thank you.I have try to write this in the adress bar in windows xp and also in windows 7 and it doesn't work.How i make this variable work?I have read about this before, but always i think that the people was talking about this in C#I have tried to put this in a comand line of WPI but without funtion. Link to comment Share on other sites More sharing options...
MrJinje Posted January 18, 2010 Share Posted January 18, 2010 For Windows 7 it has been changed, use this for accessing the Public Desktop (formerly all users desktop).%PUBLIC%\DesktopFor adding links to the All Users Start Menu, make them in either of these locations (both are exactly the same)%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\ProgramsGreater details can be found here.http://en.wikipedia.org/wiki/Environment_v...crosoft_Windows Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now