Delete Files Older than a Specified Number of Days

Deletes files that are older than the number of days specified by the variable RetentionPeriod.

Add to favorites
E-mail Twitter Digg Facebook
  • Terrible Script
    1 Posts | Last post June 02, 2011
    • This script would be fine in a batch environment but it is a butcher's job in a VB Script because it largely ignores the comprehensive date arithmetic functions available in VB Scripts. Subtracting dates from each other is not appropriate in VB Scripts. The DateDiff functions must be used instead.