检查这个答案 [ ^ ]来自与你类似的问题。
Check this answer[^] from a question similar to yours.
请查看以下脚本
please check this out the below script
set folder="D:\test"
cd /d %folder%
for /F "delims=" %%i in ('dir /b') do (rmdir "%%i" /s/q || del "%%i" /s/q)
请在使用前试用...
please try it before you use...