Automating Disk Cleanup on Windows using commandline

Posted by Ram on Super User See other posts from Super User or by Ram
Published on 2010-04-15T13:09:27Z Indexed on 2010/05/03 20:18 UTC
Read the original article Hit count: 290

I asked this question on the MSDN forums but there was no response. Maybe someone might be able to help me out here.

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

While 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?

Thanks.

© Super User or respective owner

Related posts about Windows

Related posts about disk-cleanup