Windows Environment Variables and Paths

Aus MattWiki

List of Windows Environment Variables

Variable Example
%HOMEDRIVE% C:
%HOMEPATH% \Users\Alice
%LOCALAPPDATA% C:\Users\Alice\AppData\Local
%PROGRAMDATA% C:\ProgramData
%PROGRAMFILES% C:\Program Files
%PROGRAMFILES(X86)% C:\Program Files (x86)
%PUBLIC% C:\Users\Public
%RANDOM% Provides a random integer number
%SYSTEMDRIVE% C:
%SYSTEMROOT% C:\Windows
%USERNAME% Alice
%USERPROFILE% C:\Users\Alice
%WINDIR% C:\Windows
%COMSPEC% C:\WINDOWS\system32\cmd.exe

List of Notable Paths

%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu
%USERPROFILE%\Documents\Benutzerdefinierte Office-Vorlagen
%APPDATA%\Microsoft\Teams\Backgrounds\Uploads

Sources and More Details

https://ss64.com/nt/syntax-variables.html

https://ss64.com/nt/syntax-folders.html