Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to make sure that the server we use for logging certain things never runs out of disc space because of too many logs. The oldest logs shall be deleted when disc space is running low. Are there tools for this? In Linux there is rotate when I remember correctly. But in Windows? It is not about one log file but several log files.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

You could create a scheduled task that executes a batch file which deletes files older than x days. The task can then be scheduled to be run daily, monthly, whatever.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.