Tag: archive files older than X number of days

Use forefiles.exe and 7zip to archive files older than X number of days

On a Microsoft Windows server, there is a folder that contains 1000s of logfiles. Each logfile varies by name and size. I wanted a script that would compress all logfiles into a single zip file that were older than seven days. After the compression is completed and the zip file is created, all logs older than seven days will be…

Read More »