Windows Environment Variables

Một số biến môi trường trong Windows hay dùng (Environment Variables)

Variable Windows XP Windows Vista/ Windows 7/Windows 8-8.1
%temp% or %tmp% Template Folder Template Folder
%systemroot% or %windir% C:\Windows C:\Windows
%appdata% C:\Documents and Settings[User]\Application Data C:\Users[User]\AppData\Roaming
%computername% {computername} {computername}
%comspec% cmd.exe cmd.exe
%programfiles% C:\Program Files %programfiles(x86)% = C:\Program Files(x86) %programw6432% = C:\Program Files
%commonprogramfiles% C:\Program Files\Common Files C:\Program Files\Common Files
%commonprogramfiles(x86)% C:\Program Files(x86)\Common Files C:\Program Files(x86)\Common Files
%homepath% C:\Documents and Settings[User] C:\Users[User]
%localappdata% C:\Users[User]\AppData\Local
%homedrive% or %systemdrive% C:</td> C:</td>
%localserver% \domain_logon_server \domain_logon_server
%allusersprofile% C:\Documents and Settings\All Users C:\ProgramData
%username% Username of PC Username of PC
%userprofile% C:\Documents and Settings[User] C:\Users[User]
%public% C:\Users\Public
%programdata% C:\ProgramData
%psmodulepath% %systemroot%\system32\WindowsPowerShell\v1.0\Modules