|Hello. I need a batch file to delete folders and the content inside older than N days...|
name of folder = "test+date"
\test20101020 (2010 = year; 10 = month; 20 = day)
\test20101015 (2010 = year; 10 = month; 15 = day)
\test20101014 (2010 = year; 10 = month; 14 = day)
So, what i need to do is to get the newest date from the folder name and delete all folders 7 days older.
NOTE: i need to delete all the folders and the content inside it
If anyone has any ideia on how to make the batch file to do that let me know.
Thanks a lot.