By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!@setlocal
@echo off
:: Keep last n days of backups
set Days2Keep=7
:: Change this to the location of your files
::
cdd C:\Users\jlcav\OneDrive\Documents\Quicken\BACKUP
:: How many backup files are older than %Days2Keep?
::
ffind /Q /![d-%Days2Keep] *.qdf-backup
iff %_ffind_files gt 0 then
echo _ffind_files: %_ffind_files
:: Show the backup files that are older than %Days2Keep days.
::
dir *.qdf-backup /![d-%Days2Keep]
endiff
endlocal