批处理遍历特定目录并删除指定文件夹

for /f "delims=" %%a in ('dir /ad/s/b DIRNAME') do rd /s/q "%%~a"
原文地址:https://www.cnblogs.com/storymedia/p/4463028.html