Windows 2003 Server Local And System Environment Variables

 

Local

 

Variable

Description

%ALLUSERSPROFILE%

Echoes the all Users Profile.

%APPDATA%

Echoes where application data is stored by default.

%CD%

Echoes the current working directory string.

%CMDCMDLINE%

Echoes the command line used to start the current Cmd.exe.

%LOGONSERVER%

Echoes the Domain Controller (DC) that validated the current logon session.

%PROMPT%

Echoes the command prompt settings for the current interpreter.

%USERDOMAIN%

Echoes the domain name where the user account exists.

%USERNAME%

Echoes the user name of the current logged on user.

%USERPROFILE%

Echoes the Returns the location of the profile for the current user.

 

System

 

Variable

Description

%CMDEXTVERSION%

Echoes the version number of the current Command processor’s extensions.

%COMPUTERNAME%

Echoes the name of the computer.

%COMSPEC%

Echoes the path of the Command shell exe.

%DATE%

Echoes the current date.

%ERRORLEVEL%

Echoes the last error code for the last command issued.

%HOMEDRIVE%

Echoes the current logged on users home directory drive letter.

%HOMEPATH%

Echoes the path to the current logged on users home directory.

%HOMESHARE%

Echoes the network path of  the current logged on users shared home directory.

%NUMBER_OF_PROCESSORS%

Echoes the number of processors installed.

%OS%

Echoes the Operating System name.

%PATH%

Echoes the Path contents.

%PATHEXT%

Echoes the file extensions list the operating system deems as executable.

%PROCESSOR_ARCHITECTURE%

Echoes the chip processor architecture.

%PROCESSOR_IDENTFIER%

Echoes the processors description.

%PROCESSOR_LEVEL%

Echoes the processors model number.

%PROCESSOR_REVISION%

Echoes the processors revision number.

%RANDOM%

Echoes a randomized number from 0 to 32767.

%SYSTEMDRIVE%

Echoes the System Root directory drive letter hosting the Operating System.

%SYSTEMROOT%

Echoes the Operating Systems system root directory drive letter and directory name.

%TIME%

Echoes the Operating Systems current time.

%WINDIR%

Echoes the Operating Systems drive letter and directory name.

 

 

Published Sunday, November 25, 2007 6:56 AM by dhite
Filed under:

Comments

No Comments