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