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 am trying to run Disk Cleanup in the Command Prompt (and through a C# program) and so I went through all the available options from this link:

Whilst I am just trying to understand what I can do, it would be good if someone could explain why the drive option /d cannot be set while specifying /sagerun:n.

Or is it possible, by some way, to run /sagerun for a specific drive?

share|improve this question

You have to use /d with /sageset:n; /sagerun:n just runs the configuration as set in the registry key.

In other words, you can't create a set of cleanup options and then run them on individual drives, you have to set cleanup options for each drive. If you run /sageset:n without the /d switch then it is supposed to run on all drives when you use /sagerun:n.

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.