Windows Environment Variables

Variable

Typical value (may vary)

%ALLUSERSPROFILE%

C:\ProgramData

%APPDATA%

C:\Users\(username}\AppData\Roaming

%CommonProgramFiles%

C:\Program Files\Common Files

%COMPUTERNAME%

{computername}

%COMSPEC%

C:\Windows\System32\cmd.exe

%HOMEDRIVE%

C: or sometimes D:

%HOMEPATH%

\Users\{username}

%LOCALAPPDATA%

C:\Users\{username}\AppData\Local

%PATH%

Varies. Includes

C:\Windows\System32\;C:\Windows\

%PATHEXT%

.COM; .EXE; .BAT; .CMD; .VBS; .VBE;

.JS ; .WSF; .WSH; .MSC

%ProgramData%

C:\ProgramData

%PROGRAMFILES%

Directory containing program files, usually C:\Program Files

%ProgramFiles(x86)%

In 64-bit systems, directory containing

32-bit programs. Usually C:\Program

Files (x86)

%PROMPT%

Code for current command prompt

format. Code is usually $P$G

%Public%

C:\Users\Public

%SYSTEMDRIVE%

The drive containing the Windows  root

directory, usually C:

%SYSTEMROOT%

The Windows root directory, usually

C:\Windows

%TEMP% and %TMP%

C:\Users\{Username}

\AppData\Local\Temp

%USERNAME%

{username}

%USERPROFILE%

C:\Users\{username}

%WINDIR%

Usually C:\Windows

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.