Util

[산출물] 특정 폴더의 파일목록이 필요할때

김평범 2014. 5. 29. 19:00

특정 폴더의 파일목록이 필요할때

cmd 에서 해당 폴더로 이동


1. 폴더 포함 파일목록
c:\work>dir /s /b /on > fileList.txt
fileList.txt 에 파일목록이 추출됨.

2. 폴더만
c:\work>dir /a:d /s /b /on /w /x > dirList.txt

3. 파일만(Full path , 이름순)
c:\work>dir /a:a /s /b /on /w /x > dirList.txt 



* 폴더와 파일을 구분하여 사용해야할 때, 추출을 위한 스크립트 파일

fileFolderDv.html