Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 don't like running defrag when I use the computer, so I want to start it before going to bed and let it do its work and have it shut down the computer when it's done.

I haven't find an option for it in the builtin defrag tool. I know 3rd party defraggers can shut down the machine after finishing, but I don't want to install an other program just for that.

Is there a way to do that with the builtin defragger?

share|improve this question
up vote 5 down vote accepted

You should be able to create a batch file that runs the defrag and then issues the shutdown command on your PC, no?

Create a batch file that looks something like:

SHUTDOWN /s /t 00
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.