Sunday, October 01, 2017

I don't make many windows scripts so here's one.

To delete everything in your Downloads folder older than 30 days save the following into clearDownload.bat on your desktop and then click it when you feel happy



forfiles -p "%userprofile%\Downloads" -s -m *.* /D -30 /C "cmd /c del /F/S/Q @path"