fbpx
Wikipedia

Contig (defragmentation utility)

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

Contig
Original author(s)Mark Russinovich
Developer(s)Sysinternals (a Microsoft subsidiary)
Stable release
1.8 / July 4, 2016; 6 years ago (2016-07-04)
Operating systemWindows
TypeDefragmentation
LicenseProprietary freeware
WebsiteMicrosoft Technet

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

Notes and references

  1. ^ Windows NT Magazine column, "Inside the Object Manager" October 1997 2005-05-07 at the Wayback Machine
  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_ROOT\Directory\shell\contig]
    @="Defragment Folder using contig"
    [HKEY_CLASSES_ROOT\Directory\shell\contig\command]
    @="cmd.exe /K contig.exe \"%L\" -v -s"

  • 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

contig, defragmentation, utility, contig, command, line, defragmentation, utility, windows, developed, microsoft, part, sysinternals, suite, contigoriginal, author, mark, russinovichdeveloper, sysinternals, microsoft, subsidiary, stable, release1, july, 2016, . Contig is a command line defragmentation utility for Windows developed by Microsoft as part of the Sysinternals Suite ContigOriginal author s Mark RussinovichDeveloper s Sysinternals a Microsoft subsidiary Stable release1 8 July 4 2016 6 years ago 2016 07 04 Operating systemWindowsTypeDefragmentationLicenseProprietary freewareWebsiteMicrosoft Technet Contents 1 Operation 2 Limitations 3 See also 4 Notes and references 5 External linksOperation EditContig 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 gt 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 EditContig 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 EditComparison of defragmentation software Defragmentation File system fragmentation List of defragmentation softwareNotes and references Edit Windows NT Magazine column Inside the Object Manager October 1997 Archived 2005 05 07 at the Wayback Machine Documentation on TechNet page Edwards Donn 31 August 2007 Make Contig Easier to Use Insights and Rants Retrieved 19 May 2010 REGEDIT4 br HKEY CLASSES ROOT Directory shell contig br Defragment Folder using contig br HKEY CLASSES ROOT Directory shell contig command br cmd exe K contig exe L v s 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 EditMicrosoft Technet site Contig page Power Defragmenter GUI mentioned above in the article is a graphical interface for Contig Retrieved from https en wikipedia org w index php title Contig defragmentation utility amp oldid 1123348479, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.