Environment variables in Windows such as. %temp%
is by default:
C:\Users\{Username}\AppData\Local\Temp
… But there are more.
Where {Username}
is a Username.
%allusersprofile% > C:\ProgramData
%appdata% > C:\Users\{username}\AppData\Roaming
%commonprogramfiles% > C:\Program Files\Common Files
%CommonProgramFiles(x86)% > C:\Program Files (x86)\Common Files
Only available in 64-bit (x64) OS, and point to Common Files directory
in 32-bit Program Files.
%computername% > {computername}
%homepath% > \Users\{username}
%localappdata% > C:\Users\{username}\AppData\Local
%programdata% > C:\ProgramData
%programfiles% > C:\Program Files
Directory containing program files, usually
%programfiles(x86)% > C:\Program Files (x86)
In 64-bit systems, directory containing 32-bit programs.
%public% > C:\Users\Public
%temp% and %tmp% > C:\Users\{Username}\AppData\Local\Temp
%username% > {username}
%userprofile% > C:\Users\{username}
%windir% > C:\Windows
%random% > Return a random number between 0 and 32767.
%time% > Display current time in regional format.