Вы находитесь на странице: 1из 4

Windows Environment Variables Reference

For Windows XP, Vista, 7 and 8 Created by CSArchive.Net

Windows Environment Variables Reference Created by CSArchive.Net


All Rights Reserved

Windows Vista, 7 and 8 Environment Variables Variable


%ALLUSERSPROFILE% %APPDATA% %CommonProgramFiles% %COMMONPROGRAMFILES(x86)% %COMPUTERNAME% %COMSPEC% %HOMEDRIVE% %HOMEPATH% %LOCALAPPDATA% %PATH% %PATHEXT% %ProgramData% %PROGRAMFILES% %ProgramFiles(x86)% %PROMPT% %Public% %SYSTEMDRIVE% %SYSTEMROOT% %TEMP% and %TMP% %USERNAME% %USERPROFILE% %WINDIR%

Path (value)
C:\ProgramData C:\Users\(username}\AppData\Roaming C:\Program Files\Common Files C:\Program Files (x86)\Common Files {computername} C:\Windows\System32\cmd.exe C: C:\Users\{username} C:\Users\{username}\AppData\Local C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH; .MSC C:\ProgramData C:\Program Files C:\Program Files (x86) (64-bit version) $P$G C:\Users\Public C: C:\Windows C:\Users\{Username}\AppData\Local\Temp {username} C:\Users\{username} C:\Windows

Windows XP Environment Variables Variable


%ALLUSERPROFILE% %APPDATA% %COMMONPROGRAMFILES% %COMMONPROGRAMFILES(x86)% %COMPUTERNAME% %COMSPEC% %HOMEDRIVE%

Description
C:\Documents and Settings\All Users C:\Documents and Settings\{username}\Application Data C:\Program Files\Common Files C:\Program Files (x86)\Common Files {computername} C:\Windows\System32\cmd.exe C:\

%HOMEPATH% %PATH% %PATHEXT% %ProgramFiles% %ProgramFiles(x86)% %PROMPT% %SYSTEMDRIVE% %SYSTEMROOT% %TEMP% and %TMP% %USERNAME% %USERPROFILE% %WINDIR%

C:\Documents and Settings\{username} C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF; .WSH C:\Program Files C:\Program Files (x86)(64-bit version) $P$G C:\ C:\Windows C:\Documents and Settings\{username}\Local Settings\Temp {username} C:\Documents and Settings\{username} C:\Windows

Complete list of Windows XP Environment Variables and their descriptions Note: %DATE%, %TIME%, %CD%, %ERRORLEVEL% and %RANDOM% are dynamic variables that are
common between Windows XP, Vista, 7 and 8.

Variable
%ALLUSERPROFILE% %APPDATA% %CD% %CMDCMDLINE% %CMDEXTVERSION% %COMPUTERNAME% %COMSPEC% %DATE% %ERRORLEVEL%

Type
Local Local Local Local System System System System System

Description
Returns the location of the All Users Profile. Returns the location where applications store data by default. Returns the current directory string. Returns the exact command line used to start the current Cmd.exe. Returns the version number of the current Command Processor Extensions. Returns the name of the computer. Returns the exact path to the command shell executable. Returns the current date. Uses the same format as the date /t command. Generated by Cmd.exe. For more information about the date command. Returns the error code of the most recently used command. A non zero value usually indicates an error. Returns which local workstation drive letter is connected to the user's home directory. Set based on the value of the home directory. The user's home directory is specified in Local Users and Groups. Returns the full path of the user's home directory. Set based on the value of the home directory. The user's home directory is specified in Local Users and Groups. Returns the network path to the user's shared home directory. Set based on the value of the home directory. The user's home directory is specified in Local Users and

%HOMEDRIVE%

System

%HOMEPATH%

System

%HOMESHARE%

System

%LOGONSEVER% %NUMBER_OF_PROCESSORS% %OS% %PATH% %PATHEXT%

Local System System System System

%PROCESSOR_ARCHITECTURE% System %PROCESSOR_IDENTIFIER% %PROCESSOR_LEVEL% %PROCESSOR_REVISION% %PROMPT% %RANDOM% %SYSTEMDRIVE% %SYSTEMROOT% %TEMP% and %TMP% System System System Local System System System System and User

%TIME% %USERDOMAIN% %USERNAME% %USERPROFILE% %WINDIR%

System Local Local Local

System

Groups. Returns the name of the domain controller that validated the current logon session. Specifies the number of processors installed on the computer. Returns the operating system name. Windows 2000 displays the operating system as Windows_NT. Specifies the search path for executable files. Returns a list of the file extensions that the operating system considers being executable. Returns the chip architecture of the processor. Values: x86, IA64. Returns a description of the processor. Returns the model number of the processor installed on the computer. Returns the revision number of the processor. Returns the command prompt settings for the current interpreter. Generated by Cmd.exe. Returns a random decimal number between 0 and 32767. Generated by Cmd.exe. Returns the drive containing the Windows XP root directory (that is, the system root). Returns the location of the Windows XP root directory. Returns the default temporary directories that are used by applications available to users who are currently logged on. Some applications require TEMP and others require TMP. Returns the current time. Uses the same format as the time /t command. Generated by Cmd.exe. For more information about the time command. Returns the name of the domain that contains the user's account. Returns the name of the user who is currently logged on. Returns the location of the profile for the current user. Returns the location of the operating system directory.

www.csarchive.net

Вам также может понравиться