ScanDisk is a full-featured disk analysis and repair program. It is designed to work on both uncompressed drives as well as compressed drives.
Syntax
To check the current drive for disk errors, use the following syntax: SCANDISK
To check one or more drives for disk errors, use the following syntax:
SCANDISK [ drive: [ drive: ... ] | /ALL ] [ /CHECKONLY | /AUTOFIX [ /NOSAVE ] | /CUSTOM ] [ /SURFACE ] [/MONO] [ /NOSUMMARY ]
To check a specific drive, type the drive letter after the ScanDisk command.
For example, to check drive D, type the following command:
scandisk d:
To check a file or files for fragmentation, use the following syntax:
SCANDISK / FRAGMENT [ drive: ] [ path ] filename
To undo repairs you made previously, use the following syntax:
SCANDISK / UNDO [ undo-drive: ] [ /MONO ]












