Win XP system variable mode

  

In some batch or system tricks tutorial articles, we often see variables of the form %windir% or %systemdrive%. What do these variables mean? Under the web teaching network icech for everyone to organize the corresponding path in the system variable expression under Windows XP, we can see more clearly!

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

. Note: 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: The 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\\weste

%HOMEPATH%

Explanation: Refers to the current user's profile directory

Corresponding path: C:\\Documents and Settings\\weste

%systemdrive%

Description: System disk

Corresponding path: C:\\

%HOMEDRIVE%

Description: The disk where the system is located

Corresponding path: C:\\

%windir%

Description: The directory where the system is located

Corresponding path: C:\\WINDOWS

%SystemRoot%

Description: The directory where Windows is located

Corresponding path: C:\\WINDOWS

%Temp%

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

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

%Tmp%

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

Corresponding path: C:\\Documents and Settings\\owner\\Local Settings\\Temp< Br>

%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\\weste\\Application Data

%ComSpec%

Description: cmd.exe file path

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

%LogoNSERVER%

Description: cmd.exe file path

Corresponding path: \\\\icech

At the same time, the above variable settings can also be View by entering the 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