This script runs within a DTS package. It searches the backup directory stored as a global variable in the script and trims all backup files older than some number of days. the script includes logging to the C: drive so you can trace the effects of the script.
You need to create the global variables in the DTS package for DaystoKeep, BackupPath, and DBname.