Recursively Delete All Files Older Then n Number of Days

Category:
C#, VB.NET, ASP.NET
Type:
Modules
Difficulty:
Beginning
Author:
Anonymous

Version Compatibility: Visual Basic.NET

More information:
This is my first program that i am publishing. It is compiled in VS2005. The module included below takes a directory and identifies all subdirectories, then identifies all files in the subdirectories. Each file is passed through an aging check and it deletes all the files that are older then 30 days in all given subdirectories.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: