可在刪除 N 天前的檔案後執行。@echo off@dir "C:\" /AD /B /S > D:\emptydir.txt@for /f %%a in (D:\emptydir.txt) do rmdir %%a@del D:\emptydir.txt@echo on@exit