目的:清除3天份的備份檔
語法:forfiles /p "D:\DRBackup\DIFF-1" /s /m *.bak /d -3 /c "cmd /c del @file"
參考:
https://docs.microsoft.com/zh-tw/windows-server/administration/windows-commands/forfiles