Server Fault is a question and answer site for system and network administrators. 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 was wondering if there is a way to create a batch file that will run a Disk Cleanup (on XP and 7 PC's), and have it create a log file on the local PC that will tell me the details, or that it's run.

Thanks for any ideas.

share|improve this question
up vote 1 down vote accepted

You can make a batch file. Here are the instructions:

No log file but you might be able pipe it into a log file. cleanmgr /sagerun:11 > c:\log.doc.

share|improve this answer

Your Answer


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.