|
[x]
Posted via EE Mobile
|
|
| Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
|
|
|
|
Asked by Fredy992 in Microsoft Operating Systems, Microsoft Development, Automation
I have a folder which contains several text files with different names. These files are generated everyday with the server's current date. I have these files for example: "CLIENT_20091029.txt", "CLIENT_20091030.txt", "CLIENT_20091031.txt", "CLIENT_20091101.txt", "CLIENT_20091102.txt", "CLIENT_20091103.txt", "CLIENT_20091104.txt". I need to create a batch file (.bat) to delete all files with the date of 5 days old from current date. I need to keep only the file which are not more then 5 days old. So using the files I mentioned as example the batch file will delete the files with the dates 20091029 and 20091030 and keep the others. How do I do this with a batch file ?
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625