Tutorials on batch processing or system skill operationsArticle, We often see some variables, such as % WINDIR % or % systemdrive %. What do these variables mean? The following tips help you sort out the corresponding path for expressing system variables in Windows XP. You can see it more clearly!
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: Windows Directory
Path: C: \ WINDOWS
% 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 %
Note: Program FilesProgramInstallation Directory
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
You can also run the SET command in cmd to view the preceding variable settings. You can also right-click "my computer", select "system properties-advanced-system variables", and manually add variables to system variables.
========================================================== ========================================================== =
% System % | % WINDOWS % | % USERPROFILE % | % Temp % description
Manual virus detection, normally, the path represented by "% System % | % WINDOWS % | % USERPROFILE % | % ProgramFiles % | % commonprogramfiles % | % WINDIR %" is displayed. status. These variables make beginner computer users and cainiao very confused and puzzled after being poisoned.
To help you understand the % *** % variables in the virus removal process, here is a simple explanation and general description. Don't feel difficult because they look like there are many other types. In fact, it's easy to understand anything else. The variable is because the operating system or software may be stored in different locations on different people's computers, and the directory name may be different, therefore, it is expressed by adding a variable with a specific name between two %. As long as you understand the meaning of the two "%" words, it is very easy to understand.
So what is % System % | % WINDOWS % | % USERPROFILE % | % ProgramFiles % | % commonprogramfiles % | % WINDIR %?
% Temp % -- directory where the temporary folder of the system is located. Generally, your operating system is windows, no matter which one in Win9x/2000/XP/2003/NT, you only need to know which hard disk partition you want to install windows. For example, if you install it on disk C, % Temp % here refers to the directory folder C: \ WINDOWS \ temp. If you install the system on the d disk, it will become D: \ windows \ temp.
% WINDIR % and % WINDOWS % indicate the directory where windows is located. The partition in which Windows is installed refers to the Windows folder in this partition. % WINDOWS % the Windows folder on the System Disk Under 98 and XP, And the WINNT folder under 2000.
% SystemRoot % and % System % are used to indicate the directory where the system is located, respectively, the system root directory and the system directory. Among them, % SystemRoot % if the operating system is windows and is mounted on the drive C, they are c: \ windows. It is the same as that in article 1.
There are also several ProgramFiles classes, for example, % USERPROFILE % indicates the current user's configuration file directory. % ProgramFiles % indicates the installation directory of the program files program. % Commonprogramfiles % common file directory.
Note: % System % --
% System % indicates WINDOWS \ system under 98, winnt \ system32 \ under 2000, and windows \ system32 folder under XP
Bytes --------------------------------------------------------------------------------------------------------
1: % USERPROFILE % Represents your user folder. It is difficult to describe in a language.
Go to cmd for an interview:
Start -- run -- cmd press ENTER --- in the black window, enter echo "% USERPROFILE %" press enter to see the content it represents.
2: % USERPROFILE % refers to your user configuration file directory, which generally refers to the directory "C: \ Documents and Settings \ your username"
As for %, I think it means to specify the meaning of the variable between two %.