Skip to content

Instantly share code, notes, and snippets.

View atlc's full-sized avatar

Andrew Cartwright atlc

View GitHub Profile
@atlc
atlc / ClearOldFiles.bat
Last active January 22, 2019 15:26
Delete files on the desktop older than (90) days
ForFiles /p "C:\Users\%USERNAME%\Desktop" /s /d -90 /c "cmd /c del /F /Q @file"
ForFiles /p "C:\Users\%USERNAME%\Downloads" /s /d -30 /c "cmd /c del /F /Q @file"