必须先删除里面的文件 再删除空文件夹 命令如下:
换成你需要的盘符和文件夹就行了
假设删除d盘下的123文件夹
del/s/q d:\123\*.*
rd/s/q d:\123
/s参数为子目录
/q参数为不用确认
很多的话你可以试试做个批处理
rem Del 处理 D:\File
d:
cd d:\File
del /f/s/q *.*
cd d:\File
del /f/s/q */*.*
cd d:\File
del /f/s/q */*/*.*
cd d:\File
del /f/s/q */*/*/*.*
把盘符和文件换了 存成bat
换成你需要的盘符和文件夹就行了
假设删除d盘下的123文件夹
del/s/q d:\123\*.*
rd/s/q d:\123
/s参数为子目录
/q参数为不用确认
很多的话你可以试试做个批处理
rem Del 处理 D:\File
d:
cd d:\File
del /f/s/q *.*
cd d:\File
del /f/s/q */*.*
cd d:\File
del /f/s/q */*/*.*
cd d:\File
del /f/s/q */*/*/*.*
把盘符和文件换了 存成bat