Windows Environment Variables

Windows Environment Variables

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

VariableWindows XPWindows Vista/ Windows 7/Windows 8-8.1
%temp% or %tmp%Template FolderTemplate Folder
%systemroot% or %windir%C:\WindowsC:\Windows
%appdata%C:\Documents and Settings\[User]\Application DataC:\Users\[User]\AppData\Roaming
%computername%{computername}{computername}
%comspec%cmd.execmd.exe
%programfiles%C:\Program Files%programfiles(x86)% = C:\Program Files(x86)
%programw6432% = C:\Program Files
%commonprogramfiles%C:\Program Files\Common FilesC:\Program Files\Common Files
%commonprogramfiles(x86)%C:\Program Files(x86)\Common FilesC:\Program Files(x86)\Common Files
%homepath%C:\Documents and Settings\[User]C:\Users\[User]
%localappdata%C:\Users\[User]\AppData\Local
%homedrive% or %systemdrive%C:\C:\
%localserver%\\domain_logon_server\\domain_logon_server
%allusersprofile%C:\Documents and Settings\All UsersC:\ProgramData
%username%Username of PCUsername 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

Leave a Reply

Be the First to Comment!

Notify of
avatar
wpDiscuz