Understand Windows XP Environment Variables

Source: Internet
Author: User

Understanding Windows XP's Environment Variables
Understand Windows XP Environment Variables

Http://techrepublic.com.com/5100-10877_11-5986211.html? Tag = NL. e064

By Greg Shultz
By Greg Shultz
Translation: Purple endurer

2005.12.09 1st

Keywords: Windows XP | Microsoft Windows | Network Administration/implementation
Keywords: Windows XP | Microsoft Windows | Network Management/implementation

Takeaway:
Windows XP's environment variables control the behavior of batch files and programs, and also control the way Windows XP and the MS-DOS subsystem appears and works. check out this list of environment variables, along with their descriptions.

Overview:
Windows XP environment variables control the behavior of batch files and programs, but also control the display and working mode of Windows XP and MS-DOS subsystems. Review the list of environment variables, along with their descriptions.

Endurer Note: 1. Check out v. Leave after payment, check, pass
2. Along with together with..., together with...

 
Environment variables are used to control the behavior of batch files and programs in Windows XP; they also control the way Windows XP and the MS-DOS subsystem appears and works. to see a complete list of the environment variables that are active on a Windows XP system, follow these steps:
Environment variables are used to control the behavior of batch files and programs in Windows XP, and control the display and working modes of Windows XP and MS-DOS subsystems. To view the complete list of environment variables in Windows XP, follow these steps:

Open a command prompt window.
Open a command prompt window.

Type set and press [enter].
Enter the SET command and press Enter.

You'll see a list of the current environment variable settings. while some of them are familiar, such as path, and some are easy to figure out, such as computername, others are more cryptic. here's a sampling of Windows XP's environment variables:
You will see the list of current environment variable settings. Some of them are familiar, such as path, which is easy to comprehend, such as computername, while others are fuzzy. This is

Endurer Note: 1. The sum of figure out is, calculate, solve, determine, and comprehend.

Allusersprofile: lists the location of the All Users profile.
Allusersprofile: list all user profile file locations.

Appdata: lists the location where applications store data by default.
Appdata: lists the default storage locations of application data.

CD: lists the current directory string.
CD: list the current directory.

Clientname: list the client's NetBIOS name when connected to Terminal Server session.
Clientname: list the NetBIOS names of clients connected to a terminal service session.

Too many line: lists the command line used to start the current cmd.exe.
Cmdcmdline: name of the command line used by cmd.exe before startup.

Cmdextversion: lists the version number of the current command processor extensions.
Cmdextversion: the extended version number of the current command handler.

Commonprogramfiles: lists the path to the common Files folder.
Commonprogramfiles: lists the folder paths of common files.

Computername: lists the name of the computer.
Computername: Lists computer names.

Comspec: lists the path to the command shell executable.
Comspec: lists the paths of the executable command shell (command handler.

Date: lists the current date.
Date: list the current date.

Errorlevel: lists the error code of the most recently used command.
Errorlevel: lists the error codes of the recently used commands.

Homedrive: lists the drive letter is connected to the user's home directory.
Homedrive: Lists drive letters with the user's home directory.

Homepath: lists the full path of the user's home directory.
Homepath: list the complete path of the user's home directory.

Homeshare: lists the network path to the user's shared home directory.
Homeshare: list the network paths of the user's shared home directory.

Logonsever: lists the name of the domain controller that validated the current logon session.
Logonsever: lists the domain name controller names of valid logon sessions.

Number_of_processors: lists the number of processors installed on the computer.
Number_of_processors: list the number of processors installed on the computer.

OS: lists the name of the operating system. (Windows XP and Windows 2000 list the operating system as windows_nt .)
OS: list operating system names. (Windows XP and Windows 2000 are listed as windows_nt .)

Path: lists the search path for executable files.
Path: lists the search paths of executable files.

Pathext: lists the file extensions that the operating system considers to be executable.
Pathext: list the file extensions that the operating system deems executable.

Processor_architecture: lists the processor's chip architecture.
Processor_architecture: list the processor's chip architecture.

Processor_identfier: lists the description of the processor.
Processor_identfier: lists the processor descriptions.

Processor_level: lists the model number of the computer's processor.
Processor_level: lists the processor models of a computer.

Processor_revision: lists the revision number of the processor.
Processor_revision: lists the revision numbers of processors.

ProgramFiles: lists the path to the Program Files folder.
ProgramFiles: lists the paths of the Program Files folder.

Prompt: lists the command-prompt settings for the current interpreter.
Prompt: lists the command prompt settings of the current command interpreter.

Random: Lists A Random decimal number between 0 and 32767.
Random: list the random decimal numbers between 0 and 32767.

Sessionname: lists the connection and session names when connected to Terminal Server session.
Sessionname: lists the connection and session names used to connect to a terminal service session.

Systemdrive: lists the drive containing the Windows root directory.
Systemdrive: lists the drive where the Windows startup directory is located.

Systemroot: lists the location of the Windows root directory.
Systemroot: lists the locations of Windows Startup directories.

Temp and TMP: List default temporary directories for applications that are available to users who are currently logged on.

Temp and TMP: lists the default temporary directories of currently logged-on user-available applications.

Time: lists the current time.
Time: list the current time.

Userdomain: lists the name of the domain that contains the user's account.
Userdomain: lists the names of domains containing user accounts.

Username: lists the name of the user currently logged on.
Username: list the names of the currently logged-on users.

USERPROFILE: lists the location of the profile for the current user.
USERPROFILE: list the location of the current user profile file.

WINDIR: lists the location of the OS directory.
WINDIR: list the locations of Operating System directories.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.