@echo offfor /d /r "D:\Temp\" %%i in (*) do (Rd /q /s "%%i" 2>nul)pause
只删除D:\Temp目录下的文件夹.
@echo offfor /f %%i in ('dir /b /a:d d:\temp') do (rd /s /q D:\temp\%%i)