Last active
January 22, 2019 15:26
-
-
Save atlc/31cfb20cefd716ecb01f322c293f3f2c to your computer and use it in GitHub Desktop.
Delete files on the desktop older than (90) days
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment