> Commands A-M
> Commands Da-Dr
Reorganizes the files on a disk to optimize disk performance. Do
not use this command when Windows 2 or 3.x is running.
note: Win9x no problems.
- Specifies the drive that contains the disk you want to
- Display help.
- Analyzes the volume and displays a summary of the
- Restarts your computer after files have been
- Starts DEFRAG using a black and white color scheme.
- Defragments files and ensures that the disk contains no
empty spaces between files.
- Forces defragmentation of the volume regardless of whether
it needs to be defragmented.
- Disables the graphic mouse and graphic character set.
- Moves hidden files.
- Starts DEFRAG using an LCD color scheme.
Controls how the files are sorted in their directories. If you
omit this switch, DEFRAG uses the current order on the disk.
The colon (:) is optional. The list describes each of
the values you can use to sort files. Use any combination of
the values, and do not separate these values with spaces.
- N In alphabetic order by name
- N- In reverse alphabetic order by name (Z through A)
- E In alphabetic order by extension
- E- In reverse alphabetic order by extension (Z through A)
- D By date and time, earliest first
- D- By date and time, latest first
- S By size, smallest first
- S- By size, largest first
- Loads DEFRAG into conventional memory. By default, DEFRAG is
loaded into upper memory, if upper memory is available.
- Defragments files and leaves empty spaces, if any, between
- UNDOCUMENTED. Verifies data as written to disk. This
option slows the defragment.
- Displays the complete analysis and defragmentation reports.
- When used in combination with /A,
displays only the analysis report. When used alone, displays
both the analysis and defragmentation reports.
Network and INTERLNK drives
You cannot use DEFRAG to optimize network drives or drives
created with INTERLNK.
Disk information reported by DEFRAG and CHKDSK
Disk information that DEFRAG reports differs from information
that CHKDSK reports. DEFRAG reports
hidden and user files as one number;
CHKDSK reports numbers for each type.
DEFRAG counts the root as a directory;
CHKDSK does not. DEFRAG does not count
the volume label as a file; CHKDSK
Start DEFRAG only from DOS
If you start DEFRAG from a program such as Microsoft Windows,
you may lose data.
To load DEFRAG into conventional memory and specify that DEFRAG
sort files according to the date they were created, from latest
created to earliest created, type:
DEFRAG C: /F /SD- /SKIPHIGH
This example fully optimizes drive C, but slows DEFRAG.
- 0 The defragmentation was successful
- 1 An internal error occurred
- 2 The disk contained no free clusters. To operate, DEFRAG needs 1 free cluster
- 3 The user pressed CTRL+C (^C) to stop the process
- 4 A general error occurred
- 5 DEFRAG encountered an error while reading a cluster
- 6 DEFRAG encountered an error while writing a cluster
- 7 An allocation error occurred. To correct the error, use SCANDISK
- 8 A memory error occurred
- 9 There was insufficient memory to defragment the disk
- Windows NT