Windows system environment variables Daquan (XP/Win7/Win8)

  
Many times, whether we are under XP or Vista, Win7, Win8, whether we are programmers or ordinary users, we may use Windows system environment variables.
Some junior users may be confused. What does this do for us? How to use it? List the Windows system environment variables today, and give examples, I hope you can make good use of it. This article is used under the Win8 system, the same as other systems.
For example, your Windows desktop is messy, and you have decompressed hundreds of files by yourself or yourself. How do you manage this time?
At this time, if you press the Win key + R key, open the run window, and then enter
%HOMEPATH%
After the carriage return, is the resource manager open the name of your Windows login name? folder?
Then click on the desktop folder to go in, you can manage it in the resource manager!

Of course, this is only one use, there are many, many, lets you quickly navigate to where you need to, for example, if you do not want to use the cube optimization guru inside the System Folder to move the function, you can manually The settings, for example, in the Explorer that you just opened, bookmark the folder, you can right-click, modify the properties, location, transfer it to the D drive or other places, so that you will not be afraid to reinstall the system.
System environment variables are %????% In this format, I personally use the three commonly used %APPDATA%, %HOMEPATH%, %TEMP%, of course, you can write lowercase.
Windows System Environment Variables Full Table ——
Environment Variables
Details
%ALLUSERSPROFILE%
All User Profile File Locations
%APPDATA%
Application Data Default storage location
%CD%
Current directory
%CLIENTNAME%
Client's NETBIOS name when connecting to a Terminal Services session
%CMDCMDLINE%
Starting the current cmd.exe Command Line
%CMDEXTVERSION%
Current Command Handler Extension Version Number
%CommonProgramFiles%
Folder Path for Common Files
%COMPUTERNAME%
Computer Name
%COMSPEC%
The path to the executable command shell (command handler)
%DATE%
Current date
%ERRORLEVEL%
Error code for the most recently used command
%HOMEDRIVE%
Drive letter where the user's home directory is located
%HOMEPATH%
Full path to the user's home directory
%HOMESHARE %
Network path for user shared home directory
%LOGONSEVER%
Valid domain name controller name for current login session
%NUMBER_OF_PROCESSORS%
Number of processors installed by computer
%OS %
Name of the operating system (Windows XP and Windows 2000 listed as Windows_NT)
%Path%
Search path for executable files
%PATHEXT%
Files that the operating system considers executable Extension
%PROCESSOR_ARCHITECTURE%
Processor Chip Architecture
%PROCESSOR_IDENTFIER%
Processor Description
> %PROCESSOR_LEVEL%
The model of the processor of the computer
%PROCESSOR_REVISION%
The revision number of the processor
%ProgramFiles%
The path to the Program Files folder
%PROMPT%
Command Prompt Settings for Current Command Interpreter
%RANDOM%
Random Decimal Numbers Between 0 and 32767
%SESSIONNAME%
Connections and Session Names When Connecting to a Terminal Services Session < Br> %SYSTEMDRIVE%
The drive where the Windows boot directory is located
%SYSTEMROOT%
The location of the Windows boot directory
%TEMP% and %TMP%
The default temporary application available for the currently logged in user Directory
%TIME%
Current Time
%USERDOMAIN%
Name of the domain containing the user account
%USERNAME%
The name of the currently logged in user
%USERPROFILE%
Current user profile file location
%WINDIR%
Location of the operating system directory

Copyright © Windows knowledge All Rights Reserved