@echo onset m=D:\SiteLog #要删除的文件目录del "%m%\*.log" /f /s /q /afor /f "delims=" %%i in ('dir /ad /w /b "%m%"') do (rd /s /q "%m%\%%i")Pause