Contig (defragmentation utility) Contents Operation Limitations See also Notes and references External...


Windows-only freewareDefragmentation software


command linedefragmentationSysInternalsPageDefrag


































Contig
Developer(s)
Mark Russinovich, Sysinternals
Stable release
1.8
/ July 4, 2016; 2 years ago (2016-07-04)

Operating system Windows
Type Defragmentation
License
Proprietary freeware
Website Microsoft Technet

Contig is a command line defragmentation utility for Windows currently owned by Microsoft subsidiary SysInternals.




Contents






  • 1 Operation


  • 2 Limitations


  • 3 See also


  • 4 Notes and references


  • 5 External links





Operation


Contig is designed to defragment individual files,[1] or specified groups of files, and does not attempt to move files to the beginning of the partition. Unlike the Windows built-in defragmenter tool, Contig can defragment individual files, individual directories, and subsets of the file system using wildcards.


Contig does not move any data except that belonging to the file in the question, so the amount it can defragment a file is limited to the largest contiguous block of free space on a system. Use of contig exchanges decreased file fragmentation for increased free space fragmentation.



Combined usage of the -s parameter and the wildcard symbol * allows whole directories and drives to be defragmented: for example,


contig -s C:*


will defrag all the files on hard drive C. The -s parameters means to browse directories recursively.
Directories, for example, can be defragmented with the following command. This will help speed up accessing files in a directory with many hundreds or thousands of files.[2]


for /R /D %a in (*.*) do start /b contig -q "%a" > nul


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



For instance:


contig -v -s C:*


When the filesystem is NTFS, contig can also analyse and defragment the following files:


$mft, $LogFile, $Volume, $Attrdef, $Bitmap, $Boot, $BadClus, $Secure, $UpCase, $Extend


For instance:


contig -v -s $mft


A small change to the Windows registry allows entire folders to be defragmented from Windows Explorer.[3] New unfragmented files with specified name and length can be created.


Derivative programs that use Contig include Power Defragmenter GUI and Multiple Applicator 6.8. A related freeware product by the same author is PageDefrag.



Limitations



  • Contig can't defragment files accessed through directory mount points (as opposed to drive letter mounts).[citation needed] Using an additional (temporary) drive letter will circumvent this problem. See subst command.

  • Contig doesn't work in Telnet sessions, but it is possible to execute it on remote machines using Sysinternals PsExec.



See also



  • Comparison of defragmentation software

  • Defragmentation

  • File system fragmentation

  • List of defragmentation software



Notes and references





  1. ^ Windows NT Magazine column, "Inside the Object Manager" October 1997


  2. ^ Documentation on TechNet page


  3. ^ Edwards, Donn (31 August 2007). "Make Contig Easier to Use". Insights and Rants. Retrieved 19 May 2010.

    REGEDIT4
    [HKEY_CLASSES_ROOTDirectoryshellcontig]
    @="Defragment Folder using contig"
    [HKEY_CLASSES_ROOTDirectoryshellcontigcommand]
    @="cmd.exe /K contig.exe "%L" -v -s"

    .mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}




.mw-parser-output .refbegin{font-size:90%;margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{list-style-type:none;margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li,.mw-parser-output .refbegin-hanging-indents>dl>dd{margin-left:0;padding-left:3.2em;text-indent:-3.2em;list-style:none}.mw-parser-output .refbegin-100{font-size:100%}


  • Winternals: Defragmentation, Recovery, and Administration Field Guide by Dave Kleiman, Laura Hunter, Mahesh Satyanarayana, Kimon Andreou, Nancy G Altholz, Lawrence Abrams, Darren Windham, Tony Bradley and Brian Barber (2006) - Syngress (
    ISBN 1-597490-792)



External links



  • Microsoft Technet site Contig page

  • Power Defragmenter GUI, mentioned above in the article, is a graphical interface for Contig




Popular posts from this blog

Why do type traits not work with types in namespace scope?What are POD types in C++?Why can templates only be...

Will tsunami waves travel forever if there was no land?Why do tsunami waves begin with the water flowing away...

Simple Scan not detecting my scanner (Brother DCP-7055W)Brother MFC-L2700DW printer can print, can't...