The command line function you want is:
sfc /scannow
The scannow switch makes it run....now. You may need your windows Xp disk, so that sfc (system file checker) can restore files it finds are corrupted.
Cipher
chkdsk [drive:] /F
Applications
DiskPart command - line utility
natsh
Diskpart.exe
Applications
document
The command line utility that allows for replacement of a corrupt registry with an older, working version is known as
DSMOD
netsh
/f Caution, though, as /f may cause unwanted behavior as it does modify files.