Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .