defrag

Windows CMD · System · available in the simulator

What it does

Analyzes fragmentation and defragments a drive.

Syntax

defrag volumen | /c | /e [/a] [/o] [/u] [/v]

Options and parameters

  • /A

    Analyzes fragmentation on the specified volume only.

    defrag C: /a
  • /O

    Optimizes according to media type, HDD or SSD.

  • /U

    Displays operation progress on screen.

  • /V

    Displays verbose output with fragmentation statistics.

  • /C

    Performs the operation on all volumes.

  • /E

    Performs the operation on all volumes except those specified.

Usage examples

  • defrag C:
  • defrag C: /A
  • defrag C: /O
  • defrag C: /a
Practise defrag

Related commands