Thanks for the fast reply!Sorry, but the filename is the same as the original, but with an extension of .bak.
No time or date is concatenated to the filename.
Are you thinking of comparing the file's date with the computer's real-time clock and deleting anything older than, say, a set number of hours, or days? I see the Windows 'temp' files are deleted by CCleaner when 48 hours old.
That may not be much of a problem for Windows 'temp' files but with backups for the various functions of an office suite, maybe a problem. For instance, if the 48 hour deletion-interval were to be used for an office computer, if no new files were generated over the weekend, then, wouldn't you be down to zero backups on Monday morning, when the cleaner runs? On Monday, everything in the directory would be 48 hours older than the real-time clock's time.
That's the reason for the way the thread's subject is worded.
At the moment, my batch file is set to preserve the most recent fifty files in the directory.
RonCam