dynamic build file name with date
Posted: 27 Aug 2008 01:36
I need to delete files older than a week.
The files naming convention is ccyyMMMdd ex 2008Aug25.xml.
I need to do this in a batch file but have no idee how to structure the delete command. Del *.xml will delete all files.
Any help?
The files naming convention is ccyyMMMdd ex 2008Aug25.xml.
I need to do this in a batch file but have no idee how to structure the delete command. Del *.xml will delete all files.
Any help?