반응형
Windows에서 박쥐 파일을 사용하여 모든 내용이 들어있는 폴더를 삭제하는 방법은 무엇입니까?
bat 파일을 사용하여 모든 파일과 하위 폴더가있는 폴더를 삭제하고 싶습니다.
다음을 시도했지만 작동하지 않습니다.
@DEL D:\PHP_Projects\testproject\Release\testfolder*.*
아무도 도와 줄 수 있습니까?
@RD /S /Q "D:\PHP_Projects\testproject\Release\testfolder"
설명 :
디렉토리를 제거 (삭제)합니다.
RMDIR [/S] [/Q] [drive:]path RD [/S] [/Q] [drive:]path /S Removes all directories and files in the specified directory in addition to the directory itself. Used to remove a directory tree. /Q Quiet mode, do not ask if ok to remove a directory tree with /S
del /s /q c:\where ever the file is\*
rmdir /s /q c:\where ever the file is\
mkdir c:\where ever the file is\
del / s / qc : \ 파일이있는 위치 *
폴더와 하위 폴더의 모든 파일이 삭제되지만 빈 하위 폴더는 그대로 유지됩니다.
반응형
'Programing' 카테고리의 다른 글
SVN 405 방법이 허용되지 않습니다 (0) | 2020.07.11 |
---|---|
최대 신장이있는 어린이 : 부모를 100 % 오버플로 (0) | 2020.07.11 |
Google App Engine에서 모든 데이터 스토어를 삭제하는 방법은 무엇입니까? (0) | 2020.07.11 |
PHP에서 대문자 부울 대 소문자 (0) | 2020.07.11 |
자식은 모든 변경 사항을 버리고 업스트림에서 가져옵니다. (0) | 2020.07.11 |