Windows environment variables (XP/Win7/Win8)

Source: Internet
Author: User


Many times, regardless of whether we are in XP or in Vista, Win7, or Win8, whether we are programmers or common users, we may use Windows system environment variables. Some beginner users may be confused. What is the purpose of this? How to use it? Today, we will list the Windows system environment variables and give examples. I hope you can make good use of them. This article is used in the Win8 system. It is the same for other systems. Www.2cto.com
For example, your Windows desktop is messy, and hundreds of files have been decompressed by people or yourself. How can this problem be managed? At this time, if you press Win + R to open the Run window and enter % HOMEPATH % and press enter, does resource manager open the folder with your Windows login name? Click the folder on the desktop to go in. You can manage it in the resource manager!
 
Of course, this is only a purpose, and there are many more, allowing you to quickly locate where you need it. For example, if you do not want to use the system folder Migration function in the cube optimization master, you can set it manually. For example, in the resource manager you just opened, you can right-click the folder in the favorites folder and modify the folder, properties, and location to transfer it to disk D or another place, in this way, you will not be afraid of reinstalling the system in the future.
System environment variables are all % ???? In this format, I personally use % APPDATA %, % HOMEPATH %, and % TEMP %. Of course, it doesn't matter if you are in lower case. Full table of environment variables for Windows-Details of environment variables at www.2cto.com % ALLUSERSPROFILE % all user Profile file location % APPDATA % default location of Application Data % CD % current directory % CLIENTNAME % connected when a terminal service session occurs, the client's NETBIOS name % too many line % starts the command line % CMDEXTVERSION % the current command handler extended version % CommonProgramFiles % folder path of common Files % COMPUTERNAME % Computer name % COMSPEC % executable shell (command handler) PATH % DATE % current DATE % ERRORLEVEL % error code for the recently used command % HOMEDRIVE % drive letter of the user home directory % HOMEPATH % full path of user home directory % HOMESHARE % USER shared home directory network PATH % LOGONSEVER % valid domain name controller name of the current logon session % NUMBER_OF_PROCESSORS % Number of processors installed on the computer % OS % name of the Operating System (Windows XP and Windows 2000 are listed as Windows_NT) % Path % executable file search Path % PATHEXT % file extension % PROCESSOR_ARCHITECTURE % processor chip architecture % PROCESSOR_IDENTFIER % processor description % PROCESSOR_LEVEL % computer processor model % PROCESSOR_REVISION % processor revision number % ProgramFiles % Program Files Folder PATH % PROMPT % Command PROMPT for the current command interpreter to set RANDOM decimal limit between 0 and 32767% RANDOM % % SESSIONNAME % connection and session name % SYSTEMDRIVE % drive of Windows startup directory % SYSTEMROOT % location of Windows startup directory % TEMP % and % TMP % currently logged on the default temporary directory % TIME % current TIME % USERDOMAIN % of the user's available application contains the domain name % USERNAME % name of the currently logged-on user % USERPROFILE % location of the current user Profile file % WINDIR % location of the operating system directory

Related Article

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.