[Partially reproduced] Windows system environment variables & special paths

Microsoft's official description of environment variables: http://technet.microsoft.com/en-us/library/cc749104(v=ws.10).aspx

host file location : C:\Windows\System32\drivers\etc

application Configuration file location : http://zhidao.baidu.com/link?url=K9xpCegHfrVIZvywVPPxXcx3og3Mvd0tVN-CKpJiQojhYe-TYJwz3oJOl0_XjAEyKFob5mhY4jrRFlg4Dvi9B_
XP system in C:\Documents and Settings\[username]\Application Data under the
win7 application file in: C:\ Under Documents and Settings\[username]\AppData ; the
win7 system is divided into three subfolders:
  • Small files such as configuration files are stored in the roaming folder, win7
  • In the system, C:\Documents and Settings\[username]\Application Data points to this folder.
  • local holds non-roaming data such as registries and large files
  • local low holds non-roaming data such as registry and large files



Encyclopedia of Windows system environment variables reproduced from: http://www.win8china.com/html/2218.html
environment variable details
%ALLUSERSPROFILE% All User Profile File Locations
%APPDATA% Default storage location for application data
%CD% Current directory
%CLIENTNAME% The NETBIOS name of the client when connecting to a Terminal Services session
%CMDCMDLINE% The command line used to start the current cmd.exe
%CMDEXTVERSION% The current command handler extension version number
%CommonProgramFiles% Folder path for frequently used files
%COMPUTERNAME% Computer name
%COMSPEC% Path to executable command shell (command handler)
%DATE% current date
%ERRORLEVEL% Error code for the most recently used command
%HOMEDRIVE% The drive letter where the user's home directory is located
%HOMEPATH% The full path to the user's home directory
%HOMESHARE% The network path to the user's shared home directory
%LOGONSEVER% A valid domain name controller name for the current login session
%NUMBER_OF_PROCESSORS% The number of processors installed in the computer
%YOU% The name of the operating system (Windows XP and Windows 2000 are listed as Windows_NT)
%Path% Executable search path
%PATHEXT% File extensions that the operating system considers executable
%PROCESSOR_ARCHITECTURE% processor chip architecture
%PROCESSOR_IDENTIFIER% Description of the processor
%PROCESSOR_LEVEL% The model of the computer's processor
%PROCESSOR_REVISION% The revision number of the processor
%ProgramFiles% Path to the Program Files folder
%PROMPT% Command prompt settings for the current command interpreter
%RANDOM% random decimal number between 0 and 32767
%SESSIONNAME% Connection and session name when connecting to a Terminal Services session
%SYSTEMDRIVE% The drive where the Windows startup directory is located
%SYSTEMROOT% The location of the Windows startup directory
%TEMP% and %TMP% Default temporary directory for applications available to the currently logged in user
%TIME% current time
%USERDOMAIN% 包含用户帐号的域的名字
%USERNAME% 当前登录的用户的名字
%USERPROFILE% 当前用户 Profile 文件位置
%WINDIR% 操作系统目录的位置

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326750516&siteId=291194637