Home NT Commands
NT Syntax

DEFRAG (Windows XP)

Defragment hard drive.

syntax
      defrag <volume> [-a] [-f] [-v] [-?]

options volume drive letter or mount point (d: or d:\vol\mountpoint) -a Analyze only -f Force defragmentation even if free space is low -v Verbose output

Example:

DEFRAG c: -f

"How can you expect to govern a country that has two hundred and forty-six kinds of cheese?" - Charles de Gaulle

Related Commands:

CleanMgr - Automated cleanup of Temp files, Internet files, downloaded files, recycle bin
DISKPART - Partition manager
pagefileconfig.vbs - PageFile Configuration

Equivalent Linux BASH commands:

None



Simon Sheppard
SS64.com