batch-file                
            디렉토리 스택
        
        
            
    수색…
통사론
- 푸시 [경로]
- POPD
매개 변수
| 매개 변수 | 세부 | 
|---|---|
| 통로 | 탐색 할 디렉토리 | 
비고
-  매개 변수없이 pushd를 사용하면 스택이 인쇄됩니다.
-  popd명령은 현재 현재 디렉토리 값을 겹쳐 씁니다.
텍스트 파일 삭제
다음 예제는 일괄 처리 프로그램에서
pushd명령과popd명령을 사용하여 일괄 처리 프로그램이 실행 된 디렉토리에서 현재 디렉토리를 변경 한 다음 다시 변경하는 방법을 보여줍니다.@echo off rem This batch file deletes all .txt files in a specified directory pushd %1 del *.txt popd cls echo All text files deleted in the %1 directory
https://technet.microsoft.com/ko-kr/library/cc771180%28v=ws.11%29.aspx에서 제공
디렉토리 스택 인쇄
 디렉토리 스택을 인쇄하려면 매개 변수없이 pushd 명령을 사용하십시오. 
@echo off
cd C:\example\
pushd one
pushd ..\two
pushd ..\..
pushd
echo Current Directory: %cd%
echo:
popd
pushd three
pushd
echo Current Directory: %cd%
산출:
C:\example\two                            
C:\example\one
C:\example                                
Current Directory: C:\                        
C:\example\two                            
C:\example\one
C:\example                                
Current Directory: C:\example\two\three   
Modified text is an extract of the original Stack Overflow Documentation
        아래 라이선스 CC BY-SA 3.0
        와 제휴하지 않음 Stack Overflow