@echo off for %%d in (c, d) do ( if exist %%d:\$Recycle.bin ( echo 开始清空%%d盘回收站 rd /s /q %%d:\$Recycle.bin ) )