Как удалить папку со всем содержимым с помощью файла bat в windows?
Я хочу удалить папку со всеми файлами и папки с помощью bat файла.
Я пробовал следующее, Но он не работает:
@DEL D:PHP_ProjectstestprojectReleasetestfolder*.*
может кто-нибудь помочь?
3 ответов
@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 /q c:\where когда-либо файл*
Это удаляет все файлы в папке и подпапках, но оставляет пустые папки