//删除文件del *.后缀 /s//删除文件夹for /r 目录 %a in (文件夹名\) do @if exist "%a" rd /s/q "%a" 转载于:https://www.cnblogs.com/demonrain/p/7904967.html