Windows XP를 포함한 Windows 운영체제에서 명령줄에서 경로를 직접 입력하는 경우
문제가 있을 수 있습니다.
예를 들어 운영체제가 C:\ 가 아닌 전혀 다른 드라이브에 설치되는 경우 경로가 바뀌게 됩니다. 이런 경우를 대비하기 위해 시스템에서 환경 변수를 별도로 제공합니다.
제공되는 경로들로는 다음과 같습니다.

%ALLUSERSPROFILE%           C:\Documents and Settings\All Users
%APPDATA%                         C:\Documents and Settings\{username}\Application Data
%COMPUTERNAME%             {computername}
%COMSPEC%                        C:\Windows\System32\cmd.exe
%HOMEDRIVE%                      C:
%HOMEPATH%                       \Documents and Settings\{username}
%PATH%                                C:\Windows\System32\;C:\Windows\;C:\Windows\System32\Wbem
%PATHEXT%                            .COM; .EXE; .BAT; .CMD; .VBS; .VBE; .JS ; .WSF: .WSH  
%PROGRAMFILES%                Directory containing program files, usually C:\Program Files  
%PROMPT%                          Code for current command prompt format. Code is usually $P$G  
%SYSTEMDRIVE%                 The drive containing the Windows XP root directory, usually C:  
%SYSTEMROOT%                  The Windows XP root directory, usually C:\Windows  
%TEMP% and %TMP%            C:\DOCUME~1\{username}\LOCALS~1\Temp
%USERNAME%                       {username}
%USERPROFILE%                   C:\Documents and Settings\{username}
%WINDIR%                             C:\Windows
728x90

+ Recent posts