Windows 常用的环境变量
使用 CMD(命令提示符)输入
set
即可查看电脑上的所有环境变量。
# 常用环境变量
%APPDATA% C:\Users\Administrator\AppData\Roaming
%LOCALAPPDATA% C:\Users\Administrator\AppData\Local
%USERPROFILE% C:\Users\Administrator
%Path% C:\Windows;C:\Windows\system32;C:\Windows\System32\Wbem;
%OS% Windows_NT
%USERNAME% Administrator
%COMPUTERNAME% DESKTOP-02JOBFT
# 其他环境变量
%ALLUSERSPROFILE% C:\ProgramData
%CommonProgramFiles% C:\Program Files\Common Files
%CommonProgramFiles(x86)% C:\Program Files (x86)\Common Files
%ProgramData% C:\ProgramData
%ProgramFiles% C:\Program Files
%ProgramFiles(x86)% C:\Program Files (x86)
%ProgramW6432% C:\Program Files
%CommonProgramW6432% C:\Program Files\Common Files
%HOMEDRIVE% C:
%HOMEPATH% \Users\Administrator
%LOGONSERVER% \\DESKTOP-02JOBFT
%NUMBER_OF_PROCESSORS% 16
%PATHEXT% .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
%PROCESSOR_ARCHITECTURE% AMD64
%PROCESSOR_IDENTIFIER% Intel64 Family 6 Model 151 Stepping 2, GenuineIntel
%PROCESSOR_LEVEL% 6
%PROCESSOR_REVISION% 9702
%PROMPT% $P$G
%PSModulePath% C:\Program Files\WindowsPowerShell\Modules;C:\Windows\system32\WindowsPowerShell\v1.0\Modules
%PUBLIC% C:\Users\Public
%SESSIONNAME% Console
%SystemDrive% C:
%SystemRoot% C:\Windows
%TEMP% C:\Users\ADMINI~1\AppData\Local\Temp
%TMP% C:\Users\ADMINI~1\AppData\Local\Temp
%USERDOMAIN% DESKTOP-02JOBFT
%USERDOMAIN_ROAMINGPROFILE% DESKTOP-02JOBFT
%windir% C:\Windows
%WSLENV% WT_SESSION:WT_PROFILE_ID: