Quantcast
Channel: Take Command / TCC
Viewing all articles
Browse latest Browse all 1689

RemoveAfter

$
0
0
Hello all. I needed a utility to keep a set of backup files to a certain number of days before today. For example, delete all *.backup files older than 90 days.

I created this simple library function, RemoveAfter, to take the number of days to keep and a file pattern. Please note this does use 2 of my other library functions, DebugPrint and GetOpt. Both of them are part of this forum (near the bottom.)

I hope someone finds this useful. If you find a bug or have an improvement...

Read more

Viewing all articles
Browse latest Browse all 1689

Trending Articles