Default Environment Variable Values of Windows XP / 7

This list may help programmers in developing their software for Windows XP and 7. If I have missed any variables, notify me through the comments.

[adsense]

Windows XP  Environment variables

Variable Windows XP
%ALLUSERSPROFILE% (%PROGRAMDATA%) C:Documents and SettingsAll Users
%APPDATA% C:Documents and Settings{username}Application Data
%COMPUTERNAME% {computername}
%COMMONPROGRAMFILES% C:Program FilesCommon Files
%COMMONPROGRAMFILES(x86)% C:Program Files (x86)Common Files
%COMSPEC% C:WindowsSystem32cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% Documents and Settings{username}
%LOCALAPPDATA% Not available
%LOGONSERVER% {domain_logon_server}
%PATH% C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;{plus program paths}
%PATHEXT% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.WSF;.WSH
%PROGRAMFILES% C:Program Files
%PROGRAMFILES(X86)% C:Program Files (x86) (only in 64-bit version)
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SystemDrive% C:
%SystemRoot% The Windows directory, usually C:Windows, formerly C:WINNT
%TEMP% and %TMP% C:Documents and Settings{username}Local SettingsTemp
%USERDOMAIN% {userdomain}
%USERNAME% {username}
%USERPROFILE% C:Documents and Settings{username}
%WINDIR% C:Windows
%PUBLIC%
%PROGRAMDATA% Only available in Windows Vista and newer versions
%PSModulePath%


Windows 7 Environment variables

Variable Windows Vista/7
%ALLUSERSPROFILE% (%PROGRAMDATA%) C:ProgramData
%APPDATA% C:Users{username}AppDataRoaming
%COMPUTERNAME% {computername}
%COMMONPROGRAMFILES% C:Program FilesCommon Files
%COMMONPROGRAMFILES(x86)% C:Program Files (x86)Common Files
%COMSPEC% C:WindowsSystem32cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% Users{username}
%LOCALAPPDATA% C:Users{username}AppDataLocal
%LOGONSERVER% {domain_logon_server}
%PATH% C:Windowssystem32;C:Windows;C:WindowsSystem32Wbem;{plus program paths}
%PATHEXT% .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMFILES% C:Program Files
%PROGRAMFILES(X86)% C:Program Files (x86) (only in 64-bit version)
%PROMPT% Code for current command prompt format. Code is usually $P$G
%SystemDrive% C:
%SystemRoot% C:Windows
%TEMP% and %TMP% C:Users{username}AppDataLocalTemp
%USERDOMAIN% {userdomain}
%USERNAME% {username}
%USERPROFILE% C:Users{username}
%WINDIR% C:Windows
%PUBLIC% C:UsersPublic
%PROGRAMDATA% C:ProgramData
%PSModulePath% %SystemRoot%system32WindowsPowerShellv1.0Modules