About Site Map Submit Contact Us Log in | Create an account
Create an account Log In
Average Rating
User Rating:
Visitors Rating:
My rating:

Write review
  • License: Freeware
  • Last update: 5 years ago
  • Total downloads: 211
  • Price: Free |
  • Operating system: WinXP, Win2003, Win2000, Win Vista, Window2008
  • Publisher: Mark Russinovich (34 other programs)
See full specifications

windows default iconContig Publisher's description

Wish you could quickly defragment your frequently used files? Use Contig to optimize individual files, or to create new files that are contiguous.


There are a number of NT disk defraggers on the market, including Winternals Defrag Manager. These tools are useful for performing a general defragmentation of disks, but while most files are defragmented on drives processed by these utilities, some files may not be. In addition, it is difficult to ensure that particular files that are frequently used are defragmented - they may remain fragmented for reasons that are specific to the defragmentation algorithms used by the defragging product that has been applied. Finally, even if all files have been defragmented, subsequent changes to critical files could cause them to become fragmented. Only by running an entire defrag operation can one hope that they might be defragmented again.

Contig is a single-file defragmenter that attempts to make files contiguous on disk. Its perfect for quickly optimizing files that are continuously becoming fragmented, or that you want to ensure are in as few fragments as possible.

Using Contig

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 standard Windows defragmentation APIs so it won't cause disk corruption, even if you terminate it while its running.

To make an existing file contiguous use Contig as follows:

Usage: contig [-v] [-a] [-q] [-s] [filename]
-v Use the -v switch to have Contig print out information about the file defrag operations that are performed.
-a If you want to simply see how fragmented a file or files have become, use the -a switch to have Contig analyze fragmentation.
-q The -q switch, which over-rides the -v switch, makes Contig run in "quiet" mode, where the only thing it prints during a defrag run is summary information.
-s Use the -s switch to perform a recursive processing of subdirectories when you specify a filename with wildcards.

For instance, to defragment all DLLs under c:winnt you could enter "contig -s c:winnt*.dll".

To make a new file that is defragmented upon creation, use Contig like this:

Usage: contig [-v] [-n filename length]

How it Works

Contig uses the native Windows NT defragmentation support that was introduced with NT 4.0 (see my documentation of the defrag APIs for more information). 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.

More Information

Helen Custer's Inside Windows NT provides a good overview of the Object Manager name space, and Mark's October 1997 Windows NT Magazine column,"Inside the Object Manager", is (of course) an excellent overview.

System Requirements:

No special requirements.
Program Release Status: Minor Update
Program Install Support: Install and Uninstall

Is Contig your software?

Manage your software

Most Popular

DownloadPlex.com Software Updater icon DownloadPlex.com Software Updater
DownloadPlex.com Software Updater is freeware allow you can check new software version in your system
AVG-PC Tuneup 2012 2012.26.c1 icon AVG-PC Tuneup 2012 2012.26.c1
Restore your PC to peak performance Speeds up your PC, cleans your hard driveand eliminates freezing
DAEMON Tools 4.40.0311 icon DAEMON Tools 4.40.0311
DAEMON Tools Pro is CD %26 DVD emulation software which allows users to make CDDVD disc images, create a... Read more
Hamster Free Zip Archiver icon Hamster Free Zip Archiver
Hamster Free Zip Archiver is a new, absolutely free, file archiver which allows you to quickly and easily work... Read more
windows default icon CMP Wassup 2.5 Build 9436
This Applet will show you all the Java system properties

Related Category

» Backup & Restore (1596)
» Benchmarking (42)
» Clipboard Tools (162)
» Other (3958)
» Printer (209)
» Registry Tools (287)
» Shell Tools (187)