Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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:

http://support.microsoft.com/kb/315246

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

1 Answer 1

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

 
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.