Xyberviri

DeleteOldShit.cmd

Nov 2nd, 2017
470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.34 KB | None | 0 0
  1. REM Clean up log files older then 35 days since no one bothers checking them.
  2. forfiles -p "C:\inetpub\logs\LogFiles" -s -m *.* /D -35 /C "cmd /c del /Q /F @path"
  3. forfiles -p "C:\Program Files\DebugDiag\Logs" -s -m *.txt /D -35 /C "cmd /c del /Q /F @path"
  4. forfiles -p "C:\Program Files\DebugDiag\Logs" -s -m *.dmp /D -35 /C "cmd /c del /Q /F @path"
Advertisement
Add Comment
Please, Sign In to add comment