Problem solve Get help with specific problems with your technologies, process and projects.

Optimize/defrag a specific file on your hard disk

Optimize/defrag a specific file on your hard disk

Windows 2000's built-in Defragmenter tool is limited in its abilities to both schedule disk defrags and to defrag only specific files instead of the entire drive/volume.

(Windows XP allows scheduling a defrag by using the command line interface "defrag" and scheduling it to run using task scheduler.)

Now a free program from Sysinternals called Contig allows you to schedule the defrag of a single, specific file on your computer to help optimize its performance on your hard disk/volume.

Here's an excerpt from the Web site explaining how it works:

"Contig works on NT 4.0 and higher. Contig can be used to defrag an existing file, or to create a new file of a specified size and name, optimizing its placement on disk. Contig uses the native Windows NT defragmentation support that was introduced with NT 4. It first scans the disk collecting the locations and sizes of free areas.

"Then it determines where the file in question is located. Next, Contig decides whether the file can be optimized, based on free areas and the number of fragments the file currently consists of. If the file can be optimized, it is moved into the free spaces of the disk." This tip was submitted to's tip exchange by member Tim Fenner. Please let other users know how useful it is by rating it below.

Dig Deeper on Windows Server storage management

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.