I have created a batch file that deletes all .txt files in a folder and its sub directories. But now I need it to delete all files before a certain date because I want it to keep the .txt files created in the last 60 days. I need to delete 1.6 million files and the code below is most efficient for that.
Here is my code:
cd /BASE_PATH
del /s *.txt
How can I edit the code above to delete files before 8/19/15?
I need to keep similar code because other methods of deleting .txt files are too slow for my file amounts.