Author Topic: Defrag from the Command-Line for More Complete Control  (Read 2948 times)

0 Members and 1 Guest are viewing this topic.

Defrag from the Command-Line for More Complete Control
« on: June 16, 2010, 06:01:54 PM »

Offline Nick

  • Administrator
  • Platinum Member
  • *
  • Posts: 46028
  • Karma: +1000/-0
  • Gender: Male
  • NickCS
    • http://www.facebook.com/nickcomputerservices
    • http://www.twitter.com/nickcomputer
    • Computer Chiangmai

Defrag from the Command-Line for More Complete Control

Learn the options and syntax for running defragmentation from a command-line in Windows 7.

For more complete control of defragmentation in Windows 7, you can use the command-line defrag¬mentation tool, Defrag.exe, from an elevated command prompt.


Defrag.exe has the following syntax (which is different than the syntax used for defrag in Windows Vista):

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 defrag¬menting 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.


From the Microsoft Press book The Windows 7 Resource Kit by Mitch Tulloch, Tony Northrup, Jerry Honeycutt, Ed Wilson, and the Windows 7 Team at Microsoft.

credit: technet.microsoft.com


 
Share this topic...
In a forum
(BBCode)
In a site/blog
(HTML)


Related Topics

  Subject / Started by Replies Last post
0 Replies
3858 Views
Last post February 16, 2009, 06:37:12 PM
by Webmaster
0 Replies
3418 Views
Last post February 16, 2009, 06:56:00 PM
by Webmaster
0 Replies
3583 Views
Last post June 11, 2010, 06:31:21 PM
by Nick
0 Replies
3842 Views
Last post June 11, 2010, 07:07:10 PM
by Nick
0 Replies
7692 Views
Last post June 16, 2010, 01:47:32 PM
by Nick
0 Replies
3480 Views
Last post June 16, 2010, 07:14:52 PM
by Nick
0 Replies
3021 Views
Last post June 16, 2010, 09:19:44 PM
by Nick
0 Replies
3036 Views
Last post June 16, 2010, 09:45:08 PM
by Nick
0 Replies
3328 Views
Last post July 02, 2010, 03:00:20 PM
by Nick
0 Replies
13269 Views
Last post July 03, 2010, 02:57:44 PM
by Nick