Short answer:
sfc /SCANONCE
Longer answer:
It might not work as expected. You'll need the installation CD for your computer, and it'll need to be the latest Service Pack that's installed on your system (so if you have an XP SP2 CD, and have SP3 installed, good luck). There's ways of managing around that, but that's a much larger post. Good luck!
Hope this helps!
that is the command for system file checker.
shutdown -r
Use system file checker to verify the version of all system files when Windows loads. Useful when you suspect system files are corrupted, but you can still access the Windows desktop. Command to execute it: Sfc with parameters.
The sfc scanboot command launches system file checker every time computer boots.
You can use the chkdsk command with the /f or /r switch in a command prompt window to check and fix errors on a disk without requiring a restart, as long as the drive is not the system drive. For example, you can run chkdsk D: /f to check and fix errors on the D: drive. However, if you attempt to run it on the system drive (usually C:), you will be prompted to schedule the check for the next system restart.
shutdown -r now
Edit allows a user to view, create, or modify their computer files.
To scan all system files in Windows, you can use the System File Checker (SFC) tool. At the command prompt, enter the command sfc /scannow and press Enter. This command will check for and repair corrupted system files. Make sure to run the command prompt as an administrator for it to work properly.
To use System File Checker, you can type sfc.exe or sfc in a command prompt window or in the run dialog box. To scan the system at the next reboot, you would use the /scanonce switch (sfc/scanonce).
If the Start menu won't open, try pressing the Windows key on your keyboard or right-clicking the taskbar and selecting "Task Manager." If that doesn't work, you can restart Windows Explorer through Task Manager by finding it in the Processes tab, right-clicking, and choosing "Restart." If the issue persists, consider running a system file checker by opening Command Prompt as an administrator and typing sfc /scannow.
The check disk command that does not require a restart to run is chkdsk with the /f option, executed from the command prompt. For example, you can run chkdsk C: /f to check and fix errors on the C: drive while the operating system is running. However, if the drive is in use, some repairs may not be possible until a restart occurs. To ensure a thorough check, it's often recommended to run chkdsk after a reboot.
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.