Defrag from the Command-Line for Complete Control

Saturday, March 13, 2010
By Susanta K Beura

tinyJOBsWith commane-Line tools you can have more control over defragmentation in Windows. You can use the command-line defragmentation tool, Defrag.exe, from an elevated command prompt.

Defrag.exe has the following syntax in windows 7:

Defrag <volume> | /C | /E <volumes> [/A | /X | /T] [/H] [/M] [/U] [/V]

The options for Defrag.exe are:

  • <volume> The drive letter or mount point of the volume to defragment.
  • /C Defragment all local volumes on the computer.
  • /E Defragment all local volumes on the computer except those specified.
  • /A Display a fragmentation analysis report for the specified volume without defragmenting it.
  • /X Perform free-space consolidation. Free-space consolidation is useful if you need to shrink a volume, and it can reduce fragmentation of future files.
  • /T Track an operation already in progress on the specified volume.
  • /H Run the operation at normal priority instead of the default low priority. Specify this option if a computer is not otherwise in use.
  • /M Defragment multiple volumes simultaneously, in parallel. This is primarily useful for computers that can access multiple disks simultaneously, such as those using SCSI- or SATA-based disks rather than disks with an IDE interface.
  • /U Print the progress of the operation on the screen.
  • /V Verbose mode. Provides additional detail and statistics.

logo9

Post to Twitter Post to Plurk Post to Yahoo Buzz Post to Delicious Post to Digg Post to Facebook Post to MySpace Post to Ping.fm Post to Reddit Post to StumbleUpon

Related posts:

  1. How to Create a Striped Volume in Windows A striped volume uses the free space on more than...
  2. Dual Boot System for Windows 7 and Windows Vista It’s always a bit tricky to beta test a new...
  3. How to Initiate Remote Assistance from a Command Line Remote Assistance in Windows 7 and Windows Vista is implemented...
  4. Windows Firewall with Advanced Security Using Command Line Netsh advfirewall is a command-line tool for Windows Firewall with...
  5. Optimizing the Virtual Memory In a default installation, Windows creates the page file in...

Related posts brought to you by Yet Another Related Posts Plugin.

Tags: , , , , , , , , , , , , , , , ,

Leave a Reply

Please Support Us!





Geo Visitors Map

Site Status


256
Unique Visitors
Yesterday
Powered By Google Analytics