Representation of system variables (% SystemRoot %, % WINDIR %, % Temp %, % System %)

Source: Internet
Author: User

When setting system environment variables, you will often see % SystemRoot % , % WINDIR % , % Temp % I didn't know the directories at the beginning. After some time of exploration, I finally understood them and shared them with you: sihochina
Format: variable name = actual meaning
-----------------------------------------------------------------------

% Homedrive % = C: \ partition of the currently started System
% SystemRoot % = C: \ directory of the currently started Windows System
% WINDIR % = % SystemRoot % = C: \ directory of the currently started Windows System
% USERPROFILE % = C: \ Documents ents and Settings \ sihochina current user data variable
% Homepath % = C: \ Documents ents and Settings \ sihochina current user environment variable
% Temp % = % USERPROFILE % \ Local Settings \ temp = C: \ Documents ents and Settings \ sihochina \ Local Settings \ Temp the current user temp cache variable
------------------------------------------------------------------------
For example: % Windir % \ drives The actual path is C: \ windows \ drives Directory.
A variable refers to the amount of data that has relatively different values in different environments, but has the same meaning in all environments.
You can enter these variables in Start Menu-run, as shown in % SystemRoot % , The system will directly open C: \ WINDOWS Directory.
If your current system is installed on disk D 2000, the execution result of the above variable is to open the D: \ WINNT directory.

For help: I have seen on the Internet that the system variable % System % represents two types of paths: c: \ windows \ system32, and of course C: \ windows \. Which of the following statements is true?

I checked the information from the library today. % System % refers to the System32 directory under the system installation disk. If the system is installed on drive C, the directories it refers to are: c: \ windows \ system32 (Windows XP, 2 K, 2K3) and C; \ winnt \ sysytem32 (Windows 98, me ). Correction is hereby made!

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.