Disk check utility allows you to check the computer disk with errors, integrity, and errors. You can add an option to try to repair any disk problems or WIndows integrity problems.
The following command checks the disk integrity:
or this command will check and repair any errors.
chkdsk C: /f
These are options you can use with chkdsk command:
/F Fixes errors on the disk
/V Displays the full path and name of every file on the disk (FAT16 and FAT32); displays cleanup messages if any (NTFS)
/R Locates bad sectors and recovers readable information (implies /F)
/X Forces the volume to dismount first if necessary (implies /F)
/I Performs a minimum check of index entries (NTFS only)
/C Skips checking of cycles within the folder structure (NTFS only)
/L:size Sets the log file size (NTFS only)
/B Re-evaluates bad clusters on the volume (NTFS only; implies /R)