I use the following script to keep only the newest 360 files (a year, daily-made backup) in the directory:
for /f "skip=360 eol=: delims=" %%F in ('dir /b /o-d /a-d *.*') do @del "%%F"
How to afterwards copy the newest 7 files to another directory?