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

  
Many times, whether we are under XP or under Vista, Win7, Win8, whether we are programmers or ordinary users, we may use the Windows system environment variable.
Maybe some junior users are confused, this, what is the use 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 freely in the resource manager!

Of course, this is just a use, there are many, many, you can quickly locate the place you need, for example, if you do not want to use the system folder moving function inside the Rubik's Cube optimization master, then 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.

I hope to bring help to everyone!
Windows System Environment Variables Table -

Environment Variables
Details
%ALLUSERSPROFILE%
All User Profile File Locations
%APPDATA%
Application Data Default location
%CD%
current directory
%CLIENTNAME%
Client's NETBiOS name when connecting to a Terminal Services session
%CMDCMDLINE%
Starting the current cmd.exe used Command line
%CMDEXTVERSION%
Current command handler extension version number
%CommonProgramFiles%
Folder path for common files
%COMPUTERNAME%
computername
%COMSPEC %
Executable command shell (command handler) path
%DATE%
current date
%ERRORLEVEL%
error code of most recently used command
%HOMEDRIVE%
The drive letter where the user's home directory is located
%HOMEPATH%
The full path of the user's home directory
%HOMESHARE%
The network path of the user shared home directory
%LOGONSEVER%
is valid The name of the domain controller for the current login session
%NUMBER_OF_PROCESSORS%
The number of processors installed on the computer
%OS%
The name of the operating system (Windows XP Windows 2000 listed as Windows_NT)
%Path%
Executable search path
%PATHEXT%
File extensions that the operating system considers executable:
%PROCESSOR_ARCHITECTURE%
Processing Chip architecture
%PROCESSOR_IDENTFIER%
Processor description
%PROCESSOR_LEVEL%
Computer processor model
%PROCESSOR_REVISION%
Processor revision number
% ProgramFiles%
Program Files folder path
%PROMPT%
Current command interpreter command prompt settings
%RANDOM%
Boundary decimal numbers between 0 and 32767
%SESSIONNAME%
Connection and session name when connecting to a Terminal Services session
%SYSTEMDRIVE%
Drive where the Windows boot directory is located
%SYSTEMROOT%
Location of the Windows boot directory
% TEMP% and %TMP%
The default temporary directory for the currently logged in user's available application
%TIME%
current time
%USERDOMAIN%
the name of the domain containing the user account
%USERNAME%
The name of the currently logged in user
%USERPROFILE%
The current user profile file location
%WINDIR%
OS directory Location

Copyright © Windows knowledge All Rights Reserved