How do delete a folder after X days old
Posted on 2014-11-08
Using Windows XP, I have the following batch file:
rem remove spaces from single digit values
set folder=%folder: =%
This makes a folder based and named based on date and time. This folder will later be populated for backup purposes. Of course this can get rather large so I would like to also add to the batch to check for any folders X days old and then delete those folders.
Is this possible?