Contig (defragmentation utility)

Contig is a command line defragmentation utility for Windows developed by Microsoft as part of the Sysinternals Suite.

Combined usage of the -s parameter and the wildcard symbol * allows whole directories and drives to be defragmented: for example, will defrag all the files on hard drive C. The -s parameters means to browse directories recursively.

[2] Adding the -v parameter to the command runs contig in verbose mode.

For instance: When the filesystem is NTFS, contig can also analyse and defragment the following files: $mft, $LogFile, $Volume, $Attrdef, $Bitmap, $Boot, $BadClus, $Secure, $UpCase, $ExtendFor instance: A small change to the Windows registry allows entire folders to be defragmented from Windows Explorer.

Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Directory\shell\contig]@="Defragment this folder with Contig"[HKEY_CLASSES_ROOT\Directory\shell\contig\command]@="cmd.exe /K c:\contig.exe (or c:\contig64.exe) \"%L\" -v -s" Derivative programs that use Contig include Power Defragmenter GUI and Multiple Applicator 6.8.