[Win7 tips] use command lines to sort disk fragments

Source: Internet
Author: User

In win7, you can call the command line to sort out disk fragments (it may have been available for a long time, but I have never known it ).

Simple:

Defrag D:/h/u

Explanations:

Defrag. This is the name of the disk fragment program command.

D: disk D

/H indicates that fragment is run at the normal priority. The default value is low.

/U is used to display the current fragment progress

 

Therefore, the above command means to execute the disk fragment program with the normal priority on disk D and display the progress.

 

Attached help:

Microsoft disk fragment Program
Copyright (c) 2007 Microsoft Corp.

Description:

Locate and merge fragment files in the local volume
To improve system performance.

Syntax:

Defrag <volumes> |/c |/E <volumes> [/h] [/M | [/u] [/V]
Defrag <volumes> |/c |/E <volumes>/A [/h] [/M | [/u] [/V]
Defrag <volumes> |/c |/E <volumes>/X [/h] [/M | [/u] [/V]
Defrag <volume>/T [/h] [/u] [/V]

Parameters:

Value description

/A performs analysis on the specified volume.

/C performs this operation on all volumes.

/E performs this operation on all volumes except the specified volume.

/H runs the operation with the standard priority (the default value is low ).

/M runs the operation on each volume in parallel in the background.

/T tracks the operations that have been performed on the specified volume.

/U prints the operation process to the screen.

/V prints the detailed output containing the fragment statistics.

/X merge the available space on the specified volume.

Example:

Defrag C:/u/V
Defrag C: D:/m
Defrag c: \ mountpoint/A/u
Defrag/C/h/V

 

References:

  1. Defrag help on Windows 7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.