It does not make sense to start a hard drive defragmentation if the drive is not really fragmented. You might be loosing lots of time if you have scheduled those defragmentations. The defrag tool in Windows can be used to check the fragmentation level of a hard drive and we are going to use this to create a script that runs defrag only when the hard drive is fragmented.
You can check the fragmentation level of a hard drive using the command line and the command defrag.exe c: /a. The tool then checks the specified hard drive and report back if it is fragmented or not.
A script by Ramesh Srinivasan uses this report to determine if a hard drive should be defragmented. The Visual Basic script can be used in the Windows scheduler or simply executed during startup or by double-clicking the file.
I copied the file to a text file and zipped it already. You can download the script here or visit the website above where the script is displayed in text form.
Read Related Posts
4 Responses to “Defrag Hard Drives only when they are fragmented”
Trackbacks/Pingbacks
-
[...] 原文链接。 [...]
-
[...] 原文链接。 [...]

Defrag all Hard drives at once in Windows
Page Defrag
Auslogics Registry Defrag
Auslogics Disk Defrag
Ultimate Defrag
Defrag the Registry with Regdefrag
Disk Defragmenting Software Ultra Defrag
With an automatic defragger, you don’t waste any of your time with unnecessaey defrags, so it’s an advantage over scheduling a defrag. An auto defragmenter can monitor fragmentation levels in the background and defrag ONLY if necessary, and automatically, when the system idles, so it’s a much more efficient process.
The Windows defrag utility does more than just remove fragments. It also tries to optimise the position of some startup files.
I am currently benchmarking all the commercial and freeware defrag products at “The Great Defrag Shootout”. You can also find reviews of most defraggers there as well.
Regular defrag passes (once a week or once a month depending on the load on your system) can keep your system running smoother. Ideally this should be done when you are not using your computer (i.e. during meetings of after hours) because having to wait for the defrag to finish is a waste of time.