윈도우 환경변수 (Environment variable)
Computer/Windows 2014. 5. 31. 12:13 |Microsoft Windows 기본 환경변수
Variable |
Windows |
Path |
%AllUsersProfile% |
XP |
C:\Documents and Settings\All Users |
Vista/7 |
C:\ProgramData | |
%AppData% |
XP |
C:\Documents and Settings\{username}\Application Data |
Vista/7 |
C:\Users\{username}\AppData\Roaming | |
%ComputerName% |
XP |
{computername} |
Vista/7 |
{computername} | |
%CommonProgramFiles% |
XP |
C:\Program Files\Common Files |
Vista/7 |
C:\Program Files\Common Files | |
%CommonProgramFiles(x86)% |
XP |
C:\Program Files (x86)\Common Files (64bit) |
Vista/7 |
C:\Program Files (x86)\Common Files (64bit) | |
%COMSPEC% |
XP |
C:\Windows\System32\cmd.exe |
Vista/7 |
C:\Windows\System32\cmd.exe | |
%HomeDrive% |
XP |
C: |
Vista/7 |
C: | |
%HomePath% |
XP |
\Documents and Settings\{username} |
Vista/7 |
\Users\{username} | |
%LocalAppData% |
XP |
|
Vista/7 |
C:\Users\{username}\AppData\Local | |
%LogonServer% |
XP |
\\{domain_logon_server} |
Vista/7 |
\\{domain_logon_server} | |
%Path% |
XP |
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} |
Vista/7 |
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;{plus program paths} | |
%PathEXT% |
XP |
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.WSF;.WSH |
Vista/7 |
.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc | |
%PROGRAMDATA% |
XP |
|
Vista/7 |
%SystemDrive%\ProgramData | |
%ProgramFiles% |
XP |
%SystemDrive%\Program Files |
Vista/7 |
%SystemDrive%\Program Files | |
%ProgramFiles(X86)% |
XP |
%SystemDrive%\Program Files (x86) (64bit) |
Vista/7 |
%SystemDrive%\Program Files (x86) (64bit) | |
%PROMPT% |
XP |
Code for current command prompt format. Code is usually $P$G |
Vista/7 |
Code for current command prompt format. Code is usually $P$G | |
%PSModulePath% |
XP |
|
Vista/7 |
%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\ | |
%PUBLIC% |
XP |
|
Vista/7 |
%SystemDrive%\Users\Public | |
{Drive}:\$Recycle.Bin |
XP |
C:\Recycle.Bin |
Vista/7 |
C:\$Recycle.Bin | |
%SystemDrive% |
XP |
C: |
Vista/7 |
C: | |
%SystemRoot% |
XP |
The Windows directory, usually C:\Windows, formerly C:\WINNT |
Vista/7 |
%SystemDrive%\Windows | |
%TEMP% %TMP% |
XP |
%SystemDrive%\Documents and Settings\{username}\Local Settings\Temp |
Vista/7 |
%SystemDrive%\Users\{username}\AppData\Local\Temp | |
%UserDomain% |
XP |
{userdomain} |
Vista/7 |
{userdomain} | |
%UserName% |
XP |
{username} |
Vista/7 |
{username} | |
%UserProfile% |
XP |
%SystemDrive%\Documents and Settings\{username} |
Vista/7 |
%SystemDrive%\Users\{username} | |
%windir% |
XP |
%SystemDrive%\WINDOWS |
Vista/7 |
%SystemDrive%\WINDOWS |
그외 기타 (배치파일 사용시 이용가능)
%CD% 현재 디렉터리 문자열.
%CMDCMDLINE% Cmd.exe를 시작하는 데 사용되는 정확한 명령줄.
%CMDEXTVERSION% 현재 명령 프로세서 확장의 버전 번호.
%COMPUTERNAME% 컴퓨터의 이름.
%DATE% 현재 날짜. date /t 명령과 같은 형식을 사용.
%ERRORLEVEL% 시스템 최근에 사용된 명령의 오류 코드. 대개 0이 아닌 값은 오류를 나타냅니다.
%HOMESHARE% 시스템 사용자 공유 홈 디렉터리의 네트워크 경로. 홈 디렉터리의 값을 기반으로 설정되며 로컬 사용자 및 그룹에서 지정.
%NUMBER_OF_PROCESSORS% 컴퓨터에 설치된 프로세서의 수
%OS% 시스템 운영 체제 이름.Windows 7은 운영 체제를 Windows_NT로 표시합니다.
%PROCESSOR_ARCHITECTURE% 프로세서의 칩 아키텍처. 값: x86, amd64 또는 IA64(Itanium 기반)
%PROCESSOR_IDENTFIER% 프로세서의 설명.
%PROCESSOR_LEVEL% 컴퓨터에 설치된 프로세서의 모델 수.
%PROCESSOR_REVISION% 프로세서의 수정 버전 번호.
%PROMPT% 현재 인터프리터에 대한 명령 프롬프트 설정.
%RANDOM% 0에서 32767까지의 수 중에서 임의의 십진수.
%TIME% 현재 시간. time /t 명령과 같은 형식을 사용.
출처1 : http://en.wikipedia.org/wiki/Environment_variable
출처2 : https://technet.microsoft.com/ko-kr/library/cc737438(v=ws.10)
'Computer > Windows' 카테고리의 다른 글
[Command]Cleanmgr.exe (0) | 2016.03.15 |
---|---|
Microsoft Windows 및 Server 제품군 지원기간 정리표 (0) | 2014.03.25 |
Microsoft DOS and command prompt (0) | 2011.03.07 |
Windows 7 Adminstrator 계정 사용하기 (0) | 2010.06.19 |
Microsoft Windows 다운그레이드 및 업그레이드 정책 (0) | 2010.06.05 |