Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

You can make a batch file. Here are the instructions: http://support.microsoft.com/kb/315246 http://support.microsoft.com/kb/255512

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

 
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.