Profile and Environment Variable changes in Vista/Longhorn
Aaron Parker points out that Microsoft’s Vista/Longhorn OS is changing the way roaming profiles work. One of those changes is where profiles will be stored on the disk. The well know “Documents and Settings” path is being replaced with “Users”. “All Users” is being replaced with “Public”.
Also, environment variables are changing as well. Check out the following:
Pre Vista/Longhorn:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\aaron\Application Data
HOMEPATH=\Documents and Settings\aaron
TEMP=C:\DOCUME~1\aaron\LOCALS~1\Temp
TMP=C:\DOCUME~1\aaron\LOCALS~1\Temp
USERPROFILE=C:\Documents and Settings\aaron
Vista/Longhorn:
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\aaronp\AppData\Roaming
HOMEPATH=\Users\aaronp
LOCALAPPDATA=C:\Users\aaronp\AppData\Local
ProgramData=C:\ProgramData
PUBLIC=C:\Users\Public
TEMP=C:\Users\aaronp\AppData\Local\Temp
TMP=C:\Users\aaronp\AppData\Local\Temp
USERPROFILE=C:\Users\aaronp
These changes can cause some issues with login scripts (especially those that may use hard-coded paths).
Read more at trustedaccess.info.
Technorati : Longhorn, Profile, Vista
Del.icio.us : Longhorn, Profile, Vista

Malcolm Symon Says:
February 28th, 2008 at 5:06 am
What about %USERNAME% which I want to concatenate into a string to pass as a parameter when calling an executable with a command line from my own application?