env
Variable | Default value assuming the system drive is C: |
---|---|
ALLUSERSPROFILE |
|
APPDATA |
|
ClientName | Terminal servers only - the ComputerName of a remote host. |
CMDEXTVERSION | The current Command Processor Extensions version number. (NT = "1", Win2000+ = "2".) |
CMDCMDLINE | The original command line that invoked the Command Processor. |
CommonProgramFiles |
|
COMMONPROGRAMFILES(x86) |
|
COMPUTERNAME | {computername} |
COMSPEC |
|
ERRORLEVEL | The current ERRORLEVEL value, automatically set when a program exits. |
HOMEDRIVE |
|
HOMEPATH |
|
LOCALAPPDATA |
|
LOGONSERVER |
|
NUMBER_OF_PROCESSORS | The Number of processors running on the machine. |
OS | Operating system on the user's workstation. |
System |
|
ProgramData |
|
ProgramFiles |
|
ProgramFiles(x86) 1 |
|
RANDOM | A random integer number, anything from 0 to 32,767 (inclusive). |
| Terminal servers only - for a terminal server session, SessionName is a combination of the connection name, followed by #SessionNumber. For a console session, SessionName returns "Console". |
SYSTEMDRIVE |
|
SYSTEMROOT | By default, Windows is installed to C:\Windows but there's no guarantee of that, Windows can be installed to a different folder, or a different drive letter. |
TEMP and TMP |
|
TIME | The current time using same format as TIME. |
USERPROFILE |
|
WINDIR |
|
Last updated