轉錄自 http://misnotes.blogspot.com/2009/10/windows.html
Variable |
Windows XP |
%ALLUSERSPROFILE% |
C:\Documents and Settings\All Users |
%APPDATA% |
C:\Documents and Settings\{username}\Application Data |
%COMPUTERNAME% |
{computername} |
%COMMONPROGRAMFILES% |
C:\Program Files\Common Files |
%COMMONPROGRAMFILES(x86)% |
C:\Program Files (x86)\Common Files |
%COMSPEC% |
C:\Windows\System32\cmd.exe |
%HOMEDRIVE% |
C: |
%HOMEPATH% |
\Documents and Settings\{username} |
%PATH% |
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} |
%PATHEXT% |
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.WSF;.WSH |
%PROGRAMFILES% |
C:\Program Files |
%PROGRAMFILES(X86)% |
C:\Program Files (x86) (only in 64-bit version) |
%PROMPT% |
Code for current command prompt format. Code is usually $P$G |
%SYSTEMDRIVE% |
C: |
%SystemRoot% |
The Windows directory, usually C:\Windows, formerly C:\WINNT |
%TEMP% and %TMP% |
C:\Documents and Settings\{username}\Local Settings\Temp |
%USERNAME% |
{username} |
%USERPROFILE% |
C:\Documents and Settings\{username} |
%WINDIR% |
C:\Windows |
%PUBLIC% |
留言列表