Delete All Contents of Folder Older than 7 Days
Posted on 2004-04-07
My problem is, I use a batch file to copy all contents of the Z drive and put them in C:\htmlbackup\%date%
And so on.
So I want to create a batch file that will delete all folders older than 7 days of the current date.
Current date = 2004-04-10
I want to delete all folders before 2004-04-03
I will use Scheduled Tasks to run the batch file every 7 days. I am using Windows Server 2003.