0% found this document useful (0 votes)
22 views2 pages

XP Env Vars

This document summarizes default environment variables and their values on Microsoft Windows XP. It lists the variable, its typical value, and a brief description. Some of the most common variables include %USERNAME% for the current user's name, %SystemRoot% for the Windows directory like C:\Windows, %TEMP% and %TMP% for temporary files, and %PATH% for the directories searched for executable files.

Uploaded by

Vlad Varna
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views2 pages

XP Env Vars

This document summarizes default environment variables and their values on Microsoft Windows XP. It lists the variable, its typical value, and a brief description. Some of the most common variables include %USERNAME% for the current user's name, %SystemRoot% for the Windows directory like C:\Windows, %TEMP% and %TMP% for temporary files, and %PATH% for the directories searched for executable files.

Uploaded by

Vlad Varna
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 2

Default Values on Microsoft Windows XP

Variable Data C:\Documents and Settings\{username}\Application Data {computername} C:\Windows\System32\cmd.exe C: \Documents and Settings\{username} %SystemRoot%\system32\;%SystemRoot%\;%SystemRoot %\system32\Wbem .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF: .WSH C:\Program Files (on english-language systems. May vary in other languages) Code for current command prompt format. Code is usually $P$G The drive containing the Windows XP root directory, usually C: The Windows directory, usually C:\Windows, formerly C:\WINNT C:\Documents and Settings\{username}\Local Settings\Temp {username} C:\Documents and Settings\{username} %USERPROFILE% C:\windows\Profile in Windows NT 4 and 2000 C:\Users\{username} under Windows Vista C:\Windows %ALLUSERSPROFILE% C:\Documents and Settings\All Users %APPDATA% %COMPUTERNAME% %COMSPEC% %HOMEDRIVE% %HOMEPATH% %PATH% %PATHEXT% %PROGRAMFILES% %PROMPT% %SYSTEMDRIVE% %SystemRoot% %TEMP% and %TMP% %USERNAME%

%WINDIR%

Vista only:
%CommonProgramFiles% %LocalAppdata% %ProgramData% %Public% Some dynamic environment variables: %DATE% Current date in the format determined by the Date command %TIME% Current time in the format determined by the Time command

%CD% %ERRORLEVEL% %RANDOM%

Current directory with its full path Number defining exit status of a previous command or program Random number between 0 and 32767

You might also like