Created
November 30, 2021 07:45
-
-
Save kristianrl/07f44c2a9b6adb40659d7a311e17771b to your computer and use it in GitHub Desktop.
Remove old files
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
REM Deleting all .log-files (older than 30 days) recursively | |
forfiles -p "d:\logs" -s -m *.xlsx -d -30 -c "cmd /c if @isdir==FALSE del @path" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment