I am currently backing up a folder on my desktop to another folder every 6 hours with Task Scheduler and a batch file using xcopy. How do I, say, delete backups older than 12 backups ago? For example if I have 12 backups already and it's the next 6-hour mark, it backs up the source folder and then deletes the oldest backup, as now there's 13 so that there's only 12. And this repeats, so it cycles backups.
My folders are formatted like so: YYYY-MM-DD_HHMM
(24-hour format)