This VB script deletes files older than X days in a specified folder.
It is useful for recycling old log files, like IIS log files for example.
I used the example found here as a base and then modified it a bit.
Usage: Download, rename from .txt to .vbs , Set the constants sDirectoryPath to define which path to look for files in and iDaysOld to defined the max age for the files.
- Windows ;)
| Download now! |