WinXP variable mode expression corresponding path description

  

In some batch or system skill operation tutorial articles, we often see some variables like %windir% or %systemdrive%. What do these variables mean? The following icec of the western e-net has compiled the corresponding path for the system variable expression under Windows XP. You can see it more clearly!

Description: The system file disk is C disk, the operating system is Windows XP, the login user name is weste, the computer name is icech

Description: Different operating systems such as Windows XP and Windows 2000 The corresponding paths are different, only the corresponding path of WinXP is introduced here!

%AllUsersProfile%

Description: Total directory of all users' profiles

Corresponding path: C:\\Documents and Settings\\All Users

%USERPROFILE %

Description: Refers to the current user's configuration file directory

corresponding path: C:\\Documents and Settings\\username

%HOMEPATH%

Description : refers to the current user's configuration file directory

corresponding path: C:\\Documents and Settings\\username

%systemdrive%

Description: System disk

Corresponding path: C:\\

%HOMEDRIVE%

Description: The disk where the system is located

Corresponding path: C:\\

%windir% < Br>

Description: The directory where the system is located

Corresponding path: C:\\WINDOWS

%SystemRoot%

Description: The directory where Windows is located

Path: C:\\WINDOWS

%Temp%

Description: This is the directory where the system's temporary folder is located

Corresponding path: C:\\Documents and Settings\\username \\Local Settings\\Temp

%Tmp%

Description: This is the directory where the system's temporary folder is located

C:\\Documents and Settings\\username\\Local Settings\\Temp

%ProgramFiles%

Description: Program Files installation directory

Corresponding path: C:\\Program Files

%commonprogramfiles%

Description: Common Files directory

Corresponding path: C:\\Program Files\\Common Files

%APPDATA%

Description: Application Data directory

Corresponding path: C:\\Documents and Settings\\username\\Application Data

%ComSpec%

Description: cmd.exe file path

Corresponding path: C:\\WINDOWS\\system32\\cmd.exe

%LOGONSERVER%

Description: cmd.exe file path

Corresponding path: \\\\icech

Meanwhile, the above may also be provided by the input variable set command in the CMD state. And in the right mouse button "My Computer", select "System Properties - Advanced - System Variables", manually add variables in the system variables.

Copyright © Windows knowledge All Rights Reserved