Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi all tech geeks
i am using the following command all is fine it deleted the files from the folder i just want to add another condition that the files which are 3 days older gets only deleted


pushd "C:\Bhaskar_Backup\Mail_BOX" && (rmdir . /s /q & popd )
Posted

1 solution

I found this on StackOverflow: DOS Batch file to find “new” files by date[^]
Then you just need to go trough the list in a FOR loop and delete the files.
 
Share this answer
 
Comments
Tomas Takac 4-Dec-14 10:16am    
Would the downvoter explain why?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900