Subscribe to Windows IT Pro
July 24, 2006 12:00 AM

How can I defragment a single file and not the entire disk?

Windows IT Pro
InstantDoc ID #92840
Rating: (0)

A. Sysinternals provides the Contig utility, which you can use to defragment individual files or folders. You can download the tool here. To defragment a single file, use this format:

contig <filename>

To analyze the fragmentation status, add the -a switch, as this example shows:


D:\temp>contig -a en_system_center_capacity_planner_2006.iso

Alternatively, you can use wild cards in addition to the -s switch to search through the path given and any child folders and perform degragmentation on files matching the given file name criteria. The Config tool is a great utility to keep important files defragmented without having to worry about the entire disk.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.