I want to defrag my work PC daily and would like to do this while I'm not at work. I know how to schedule a task but this requires the Defrag UI. How can I automate Defrag to run without user interaction?
feedback
|
migrated from stackoverflow.com Sep 15 '10 at 0:46
This question came from our site for professional and enthusiast programmers.
|
You can use "contig.exe" from SysinternalsSuite. It can be run from command line and does not have any GUI. | |||
|
feedback
|
|
A much simpler and more sensible solution: don't defrag it daily. It's highly unlikely that it needs it. What makes you think that it needs defragging daily is required? Most modern filesystems don't get fragged very quickly or easily, and a defrag will essentially reduce fragmentation to an aboslute minimum, so doing it again two days later is unlikely to do much unless you have some serious hardware issues. If it's eg performance issues that are making you think defrag is needed what makes you so sure they're being caused by FS fragmentation? | |||
|
feedback
|
|
I don't think it's possible to automatically defrag with the Windows defragger; scheduled defrag yes, automatic no. You'll need a commercial defragger that monitors the drives and automatically defrags in the background when necessary (some even monitor and prevent fragmentation during the write process, but that's another topic). | |||
|
feedback
|