XP Env Vars
XP Env Vars
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
Current directory with its full path Number defining exit status of a previous command or program Random number between 0 and 32767