Variables d'Environnement

Source: Microsoft

 

VariableTypeDescription
%ALLUSERSPROFILE%LocalReturns the location of the All Users Profile.
%APPDATA%LocalReturns the location where applications store data by default.
%CD%LocalReturns the current directory string.
%CMDCMDLINE%LocalReturns the exact command line used to start the current Cmd.exe.
%CMDEXTVERSION%SystemReturns the version number of the current Command Processor Extensions.
%COMPUTERNAME%SystemReturns the name of the computer.
%COMSPEC%SystemReturns the exact path to the command shell executable.
%DATE%SystemReturns the current date. Uses the same format as the date /t command. Generated by Cmd.exe.
%ERRORLEVEL%SystemReturns the error code of the most recently used command. A non zero value usually indicates an error.
%HOMEDRIVE%SystemReturns 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.
%HOMEPATH%SystemReturns 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.
%HOMESHARE%SystemReturns 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 Groups.
%LOGONSEVER%LocalReturns the name of the domain controller that validated the current logon session.
%NUMBER_OF_PROCESSORS%SystemSpecifies the number of processors installed on the computer.
%OS%SystemReturns the operating system name. Windows 2000 displays the operating system as Windows_NT.
%PATH%SystemSpecifies the search path for executable files.
%PATHEXT%SystemReturns a list of the file extensions that the operating system considers to be executable.
%PROCESSOR_ARCHITECTURE%SystemReturns the chip architecture of the processor. Values: x86, IA64.
%PROCESSOR_IDENTFIER%SystemReturns a description of the processor.
%PROCESSOR_LEVEL%SystemReturns the model number of the processor installed on the computer.
%PROCESSOR_REVISION%SystemReturns the revision number of the processor.
%PROMPT%LocalReturns the command prompt settings for the current interpreter. Generated by Cmd.exe.
%RANDOM%SystemReturns a random decimal number between 0 and 32767. Generated by Cmd.exe.
%SYSTEMDRIVE%SystemReturns the drive containing the Windows XP root directory (that is, the system root).
%SYSTEMROOT%SystemReturns the location of the Windows XP root directory.
%TEMP% and %TMP%System and UserReturns 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.
%TIME%SystemReturns the current time. Uses the same format as the time /t command. Generated by Cmd.exe.
%USERDOMAIN%LocalReturns the name of the domain that contains the user's account.
%USERNAME%LocalReturns the name of the user who is currently logged on.
%USERPROFILE%LocalReturns the location of the profile for the current user.
%WINDIR%SystemReturns the location of the operating system directory.

  2010 Liberty Boy