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