Delete old DTS packages in SQL Server 2008
Learn how to delete DTS packges using TSQL
Learn how to use ActiveX to dynamically change a query.
Thanks to the team at TechRepublic.com and BOL, I have used CTEs to delete duplicates with ease in SQL Server
Now, you can use ActiveX to check the age of a file before proceeding. The code assumes that you have already assigned the file location elsewhere in the DTS Package