Windows Environment Variables

Source: Internet
Author: User

In some batch processing or system skill operation tutorials, we often see some shapes such as % WINDIR %
Or % systemdrive %
. What do these variables mean?

Note: The system file disk is a drive C, the operating system is Windows XP, the logon username is weste, and the computer name is icech.

Note: different operating systems, such as Windows XP and Windows 2000, correspond to different paths. Here we will only introduce the corresponding paths of WINXP!

% Allusersprofile %

Description: Total directory of configuration files for all users

Path: C: \ Documents ents and Settings \ All Users

% USERPROFILE %

Description: The configuration file directory of the current user.

Path: C: \ Documents ents and Settings \ User Name

% Homepath %

Description: The configuration file directory of the current user.

Path: C: \ Documents ents and Settings \ User Name

% Systemdrive %

Description: disk of the system

Corresponding path: C :\

% Homedrive %

Description: disk of the system

Corresponding path: C :\

% WINDIR %

Description: directory of the system.

Path: C: \ WINDOWS

% SystemRoot %

Description: root directory of Windows

Path: C: \ WINDOWS

% System %

Description: Windows Directory

Path: c: \ windows \ system32

% Temp %

Note: This is the directory where the temporary folder of the system is located.

Path: C: \ Documents ents and Settings \ User Name \ Local
Settings \ Temp

% TMP %

Note: This is the directory where the temporary folder of the system is located.

Path: C: \ Documents ents and Settings \ User Name \ Local
Settings \ Temp

% ProgramFiles %

(Installation directory of the program files Program)

Path: C: \ Program Files

% Commonprogramfiles %

Description: common files directory

Path: C: \ Program Files \ common
Files

% Appdata %

Description: Application Data Directory

Path: C: \ Documents ents and Settings \ User Name \ Application
Data

% Comspec %

Description: file path of cmd.exe

Path: c: \ windows \ system32 \ cmd.exe

% Logonserver %

Description: file path of cmd.exe

Path: \ icech

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.