Environment Variables List

Variable Refers to folder or drive
%SYSTEMDRIVE% The drive / partition where Windows is installed, default = C:
%PROFILESDIRECTORY% Users, default = %SYSTEMDRIVE%\Users
%WINDIR% Windows, default = %SYSTEMDRIVE%\Windows
%ALLUSERSPROFILE% ProgramData, default = %SYSTEMDRIVE%\ProgramData
%APPDATA% %PROFILESDIRECTORY%\{username}\AppData\Roaming
%COMMONPROGRAMFILES% %SYSTEMDRIVE%\Common Files
%COMMONPROGRAMFILES(x86)% %SYSTEMDRIVE%\Program Files (x86)\Common Files
%COMSPEC% %WINDIR%\System32\cmd.exe
%HOMEDRIVE% The drive where Users is located, default = C:
%HOMEPATH% %PROFILESDIRECTORY%\{username}
%LOCALAPPDATA% %PROFILESDIRECTORY%\{username}\AppData\Local
%PROGRAMDATA% ProgramData, default = %SYSTEMDRIVE%\ProgramData
%PROGRAMFILES% %SYSTEMDRIVE%\Program Files
%PROGRAMFILES(X86)% %SYSTEMDRIVE%\Program Files (x86) (only in 64-bit version)
%PUBLIC% %PROFILESDIRECTORY%\Public
%SYSTEMROOT% %WINDIR%
%TEMP% and %TMP% %PROFILESDIRECTORY%\{username}\AppData\Local\Temp
%USERPROFILE% %PROFILESDIRECTORY%\{username}

NOTE: C:\ is the system drive (ie, where Windows is installed). It will differ if you installed Windows to a different drive.

Comments are closed.