Description of variables similar to%windir%%userprofile% under XP (RPM)

Source: Internet
Author: User

In some of the batch or system tricks tutorial articles, we often see variables that are shaped like%windir% or%systemdrive%. What do these variables mean? The following small tips home for everyone in Windows XP under the system variable mode expression corresponding to the path, you can see more clearly understand!

Description: System file disk is C drive, operating system is Windows XP, login user name is Weste, computer name is Icech

Description: Some of the paths for different operating systems, such as Windows XP and Windows 2000, are different, and only the paths that correspond to WinXP are described here!

%allusersprofile%

Description: Total profile directory for all users

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

%USERPROFILE%

Description: Refers to the current user's profile directory

Corresponding path: C:\Documents and Settings\ user name

%homepath%

Description: Refers to the current user's profile directory

Corresponding path: C:\Documents and Settings\ user name

%systemdrive%

Description: The system is located on the disk

corresponding path: \ C

%homedrive%

Description: The system is located on the disk

corresponding path: \ C

%windir%

Description: The directory where the system resides

corresponding path: C:\WINDOWS

%SystemRoot%

Description: The directory where Windows is located

corresponding path: C:\WINDOWS

%temp%

Description: This is the directory where the temporary folder of the system

Corresponding path: C:\Documents and Settings\ user name \local Settings\Temp

%Tmp%

Description: This is the directory where the temporary folder of the system

Corresponding path: C:\Documents and Settings\ user name \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\ user name \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 viewed by entering the SET command in the CMD state. And you can right-click "My Computer", select "System Properties-advanced-System Variables", in the system variables can be manually added variables

==================================================================================

%system%|%windows%|%userprofile%|%temp% 's explanation

Manually checking the poison, you will usually see%system% | %windows% | %userprofile% | %programfiles% | %commonprogramfiles% | %windir% wait for the path to be represented by "%***%". These variables allow novice computer users and novices to feel very confused and puzzled after poisoning.

To make it easy for you to understand these%***% variables in the process of purging the virus, here is a simple explanation and general description. Do not feel difficult because they appear to be many kinds, in fact, as long as the understanding of one other is easy to grasp. variable is because the operating system or software in different people's computer location may be different, the directory name may not be the same, so the two-percent-percent plus a specific name of the variable way expression. As long as you can understand the meaning of two "%" words, it is very well understood.

So what exactly is%system% | %windows% | %userprofile% | %programfiles% | %commonprogramfiles% | Where's%windir%?


The%temp%--system's temporary folder is located in the directory, usually your operating system is windows, regardless of the win9x/2000/xp/2003/nt, as long as you know that you put the Windows system in which hard disk partition on the line. For example, if you are in the C drive, then the%temp% here means C:\Windows\temp this directory folder. If you put the system on the D drive, then it becomes D:\windows\temp.

%windir%,%windows% represents the directory where Windows is located, and the partition your Windows contains is the Windows folder for that partition. %windows% under 98 and XP refers to the Windows folder under the system disk, 2000 refers to the Winnt folder.

%SystemRoot%,%system% is used to indicate the directory where the system is located, respectively, the system root directory and the system directory. where%systemroot% if the operating system is windows and is installed under partition C, then they are C:\windows. The same as in the 2nd article.

There are also several ProgramFiles classes, such as%userprofile%, which refer to the current user's profile directory. %ProgramFiles% refers to the program Files installation directory. %commonprogramfiles% Common Files directory.


Watch the%system%--.

%system% under 98 refers to the windows\system,2000 under the finger winnt\system32\,xp the Windows\System32 folder

Http://blog.sina.com.cn/s/blog_3e8fafdc0100fw2v.html

%WINDIR% {System directory-C:\WINDOWS}
%SYSTEMROOT% {System directory-C:\WINDOWS}
%systemdrive% {System root directory-C:}
%homedrive% {Current User root directory-C:}
%USERPROFILE% {Current User directory-C:\Documents and Settings\wy}
%homepath% {Current user path-\documents and Settings\wy}
%TMP% {Current User temp folder-c:\docume~1\wy\locals~1\temp}
%temp% {Current User temp folder-c:\docume~1\wy\locals~1\temp}
%appdata% {Current User Data folder-C:\Documents and Settings\wy\application
%PROGRAMFILES% {Program default installation directory-C:\Program Files}
%commonprogramfiles% {File Universal directory-C:\Program Files\Common Files}
%USERNAME% {Current user name-WY}
%allusersprofile% {All user files directory-C:\Documents and Settings\All Users}
%os% {Operating system name-windows_nt}
%computername% {computer name-ibm-b63851e95c9}
%number_of_processors% {Number of processors-1}
%processor_architecture% {Processor chip architecture-x86}
%processor_level% {Processor Model-6}
%processor_revision% {Processor revision number-0905}
%userdomain% {The domain containing the user account-ibm-b63851e95c9}
%comspec% {C:\WINDOWS\system32\cmd.exe}

%pathext% {Execute file type-. COM;. EXE;. BAT;. CMD;. VBS;. VBE;. JS;. JSE;. WSF;. WSH;. PYO;. PYc;. py;. Pyw
%PATH% {Search Path}

http://blog.csdn.net/mynote/article/details/39024655



















Description of variables similar to%windir%%userprofile% under

XP (GO)

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.