batch delete specific dates
Posted: 11 Feb 2023 03:30
Hello,
Each night I have backup files, like multiple folders with files in those folders. Files names in the folders are irrelevant for this question, but every file has a creation date. So basically in each folder, I have multiple files with the same name but different creation dates. Each morning I have to go into every single folder and delete all files apart from those containing yesterday's date. It is not a big job, it takes me about 5 minutes, but I am wondering if there is a way that could a batch script that will do it instead of me, please?
Thanks in advance.
BM
Each night I have backup files, like multiple folders with files in those folders. Files names in the folders are irrelevant for this question, but every file has a creation date. So basically in each folder, I have multiple files with the same name but different creation dates. Each morning I have to go into every single folder and delete all files apart from those containing yesterday's date. It is not a big job, it takes me about 5 minutes, but I am wondering if there is a way that could a batch script that will do it instead of me, please?
Thanks in advance.
BM