반응형

윈도우의 명령 프롬프트에서 하위 디렉토리 포함하여 디렉토리 목록을 출력하는 방법입니다. 

 

 

2021. 10. 27 - 최초작성

 

 

현재 위치의 하위 디렉토리 목록을 출력해주는 명령어입니다.

 

dir /A:D /B /S

 

 

실행시켜보면 현재 디렉토리 목록을 출력해주고 나서 각각의 디렉토리의 하위 디렉토리를 출력해주는 것을 볼 수 있습니다. 

 

 

C:\Users\webnautes\Test>dir /A:D /B /S
C:\Users\webnautes\Test\a
C:\Users\webnautes\Test\b
C:\Users\webnautes\Test\c
C:\Users\webnautes\Test\a\1
C:\Users\webnautes\Test\a\2
C:\Users\webnautes\Test\a\3
C:\Users\webnautes\Test\a\4
C:\Users\webnautes\Test\b\11
C:\Users\webnautes\Test\b\22
C:\Users\webnautes\Test\c\111
C:\Users\webnautes\Test\c\222
C:\Users\webnautes\Test\c\33

반응형

문제 발생시 지나치지 마시고 댓글 남겨주시면 가능한 빨리 답장드립니다.

도움이 되셨다면 토스아이디로 후원해주세요.
https://toss.me/momo2024


제가 쓴 책도 한번 검토해보세요 ^^

+ Recent posts