Windows Environment Variables

About Environment Variables

Environment variables are specially named aliases for basic system properties. Here is the Microsoft definition:

Environment variables are strings that contain information such as drive, path, or file name. They control the behavior of various programs. For example, the TEMP environment variable specifies the location in which programs place temporary files.

RapidEE could be useful to edit variables such asΒ PATH, CLASSPATH (Java developers, it’s for you), INCLUDE or LIB (respect to C++ developers) with ease. Moreover you will never make a mistake, because RapidEE checks your input and highlights both paths and filenames which are wrong

Windows environment variables

Variable Windows XP Windows Vista/7
%ALLUSERSPROFILE% C:\Documents and Settings\All Users C:\ProgramData
%APPDATA% C:\Documents and Settings\{username}\Application Data C:\Users\{username}\AppData\Roaming
%COMPUTERNAME% {computername} {computername}
%COMMONPROGRAMFILES% C:\Program Files\Common Files C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files C:\Program Files (x86)\Common Files
%COMSPEC% C:\Windows\System32\cmd.exe C:\Windows\System32\cmd.exe
%HOMEDRIVE% C: C:
%HOMEPATH% \Documents and Settings\{username} \Users\{username}
%LOCALAPPDATA% Only available in Windows Vista and newer versions C:\Users\{username}\AppData\Local
%LOGONSERVER% \\{domain_logon_server} \\{domain_logon_server}
%PATH% C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
%PATHEXT% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.WSF;.WSH .com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMFILES% C:\Program Files C:\Program Files
%PROGRAMFILES(X86)% C:\Program Files (x86) (only in 64-bit version) C:\Program Files (x86) (only in 64-bit version)
%PROMPT% $P$G $P$G
%SystemDrive% C: C:
%SystemRoot% C:\Windows C:\Windows
%TEMP% and%TMP% C:\Documents and Settings\{username}\Local Settings\Temp C:\Users\{username}\AppData\Local\Temp
%USERDOMAIN% {userdomain} {userdomain}
%USERNAME% {username} {username}
%USERPROFILE% C:\Documents and Settings\{username} C:\Users\{username}
%WINDIR% C:\Windows C:\Windows
%PUBLIC% Only available in Windows Vista and newer versions C:\Users\Public
%PROGRAMDATA% Only available in Windows Vista and newer versions C:\ProgramData
%PSModulePath% Only available if PowerShell is installed:
%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\

Comment

Your email address will not be published. Required fields are marked *

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