Windows Server operating system and local environment variables [WSH] Environment Variable WSH Windows Script Host VBScript JScript
The table below
Windows Server Operating System
Systems and local environment variables.
Variable type description
% AllUsersprofile%
Locally returns the location of the "All User" profiles.
% Appdata%
Locally returns the location of the application stores data by default.
% CD%
Locally returns the current directory string.
% Cmdcmdline%
Locally returns the exact command line for starting the current cmd.exe.
% Cmdextversion%
The system returns the version number of the current "command handler extension".
% Computername%
The system returns the name of the computer.
% Comspec%
The system returns the accurate path of the command line interpreter executable program.
% DATE%
The system returns the current date. Use the same format as the DATE / T command. Generate by cmd.exe. For more information on the Date command, see Date.
% Errorlevel%
The system returns the error code of the previous command. An error is usually used in a non-zero value.
% HOMEDRIVE%
The system returns a local workstation driver number connected to the user's home directory. Set based on the main directory value. The user home directory is specified in Local Users and Groups.
% HomePath%
The system returns the full path to the user's home directory. Set based on the main directory value. The user home directory is specified in Local Users and Groups.
% HOMESHARE%
The system returns the network path of the user's shared owner. Set based on the main directory value. The user home directory is specified in Local Users and Groups.
% Logonserver%
Locally returns the name of the domain controller that verifies the current login session.
% Number_of_processors%
The system specifies the number of processors installed on the computer.
% OS%
The system returns the operating system name.
WINDOWS 2000
Show its operating system
Windows_nt
.
% PATH%
The system specifies the search path for executable.
% PATHEXT%
The system returns a list of file extensions that the operating system considers executable file extensions.
% Processor_architecture%
The system returns the chip architecture of the processor. Value: x86 or IA64 (based on Itanium).
% Processor_identfier%
The system returns the processor description.
% Processor_level%
The system returns the model of the processor installed on the computer.
% Processor_revision%
The system returns the version number of the processor.
% PROMPT%
Locally returns a command prompt setting for the current interpreter. Generate by cmd.exe.
% Random%
The system returns any decimal number between 0 and 32767. Generate by cmd.exe.
% SystemDrive%
System returns
Windows Server Operating System
The root directory (ie the system root directory) drive.
% Systemroot%
System returns
Windows Server Operating System
The position of the root directory.
% TEMP%
with
% TMP%
Systems and users returns the default temporary directory for applications available to the currently logged in user. Some applications require TEMP, while other applications require TMP.
% Time%
The system returns the current time. Use the same format as the TIME / T command. Generate by cmd.exe. For more information on the Time command, see TIME.
% UserDomain%
Locally returns the name of the domain containing the user account.
% UserName%
Locally returns the name of the currently logged in user.
% UserProfile%
Locally returns the location of the current user's configuration file.
% WINDIR%
The system returns the location of the operating system directory.