IT Systems Engineering

Command to delete old log files

I found a good command to delete old logs files which were filling up my server

forfiles /P “path to your files /M filename.* /D -1 /C “cmd /c del @path”

This will delete filename.* files older than one day.

Leave a Reply

Your email address will not be published. Required fields are marked *

Prove that you are a human *