ALLUSERSPROFILE | Returns the location of the All Users Profile |
APPDATA | Returns the location where applications store data by default |
CD | Returns the current directory string |
CMDCMDLINE | Returns the exact command line used to start the current cmd.exe |
CMDEXTVERSION | Returns the version number of the current Command Processor Extensions |
COMMONPROGRAMFILES | Returns the path to the Common Files directory |
COMMONPROGRAMFILES(x86) | Returns the path to the Common Files (x86) directory on 64-bit systems |
COMPUTERNAME | Returns the name of the computer |
COMSPEC | Returns the exact path to the command shell executable |
DATE | Returns the current date. This variable uses the same format as the date /t command |
ERRORLEVEL | Returns the error code of the most recently used command. A non-0 value usually indicates an error |
HOMEDRIVE | Returns which local workstation drive letter is connected to the user's home directory |
HOMEPATH | Returns the path of the user's home directory without the drive letter |
LOGONSEVER | Returns the name of the domain controller that validated the current logon session |
NUMBER_OF_PROCESSORS | Returns the number of processors installed on the computer |
OS | Returns the OS name. Windows 2000, XP and Vista return Windows_NT |
PATH | Returns the search path for executable files |
PATHEXT | Returns a list of the file extensions that the OS considers to be executable |
PROCESSOR_ARCHITECTURE | Returns the processor's chip architecture. Values: x86, IA64 |
PROGRAMFILES | Returns the path to the Program Files directory |
PROGRAMFILES(x86) | Returns the path to the Program Files (x86) directory on 64-bit systems |
PROMPT | Returns the command-prompt settings for the current interpreter |
RANDOM | Returns a random decimal number between 0 and 32767 |
SYSTEMDRIVE | Returns the drive containing the Windows root directory (i.e. C:) |
SYSTEMROOT | Returns the location of the Windows root directory (i.e. C:\Windows) |
TEMP or TMP | Returns the default temporary directories for applications that are available to users who are currently logged on |
TIME | Returns the current time. This variable uses the same format as the time /t command |
USERDOMAIN | Returns the name of the domain that contains the user's account |
USERNAME | Local returns the name of the user currently logged on |
USERPROFILE | Local returns the location of the profile for the current user |
WINDIR | System returns the location of the OS directory |