Windows default environment variable

2018/08/15

257

Variable Windows Vista/7/8 (CMD)
%ALLUSERSPROFILE% C:\ProgramData
%APPDATA% C:\Users{username}\AppData\Roaming
%CommonProgramFiles% C:\Program Files\Common Files
%CommonProgramFiles(x86)% C:\Program Files (x86)\Common Files (only in 64-bit version)
%CommonProgramW6432% C:\Program Files\Common Files (only in 64-bit version)
%COMPUTERNAME% {computername}
%ComSpec% C:\Windows\System32\cmd.exe
%HOMEDRIVE% C:
%HOMEPATH% \Users{username}
%LOCALAPPDATA% C:\Users{username}\AppData\Local
%LOGONSERVER% \{domain_logon_server}
%ProgramData% %SystemDrive%\ProgramData
%ProgramFiles% %SystemDrive%\Program Files
%ProgramFiles(x86)% %SystemDrive%\Program Files (x86) (only in 64-bit version)
%ProgramW6432% %SystemDrive%\Program Files (only in 64-bit version)
%PSModulePath% %SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%PUBLIC% %SystemDrive%\Users\Public
%SystemDrive% C:
%SystemRoot% %SystemDrive%\Windows
%TEMP% and %TMP% %SystemRoot%\TEMP (for system environment variables %TMP% and %TEMP%), %USERPROFILE%\AppData\Local\Temp (for user environment variables %TMP% and %TEMP%)
%USERDOMAIN% {userdomain}
%USERNAME% {username}
%USERPROFILE% %SystemDrive%\Users{username}
%windir% %SystemDrive%\Windows
评论