After your computer infected by virus, usually your Windows XP system files got some errors or corrupted. And that's not by virus only the cause of corrupted files, the error of system file can caused by installer that replace file system or hard drive bad sector or another reasons those we're not realized. And we can see the error from the shown problems. The problems are from trouble when computer can't shutdown, several softwares can't open, and Windows is slow downed. So, try to check your files system first to initiating the problems and Microsoft has been give the tool freely.

The tool is sfc command. To use sfc command is very easy, just type sfc /parameter at MSDOS prompt to execute it then your files system will checked.
SFC command will check the version all of your Windows XP file system and if sfc find the version is older, sfc will replace with original file version that taken from Windows XP Setup CD.
And here are the list of sfc parameters:

  • /SCANNOW Scans all protected system files immediately.
  • /SCANONCE Scans all protected system files once at the next boot.
  • /SCANBOOT Scans all protected system files at every boot.
  • /REVERT Return scan to default setting.
  • /PURGECACHE Purges the file cache.
  • /CACHESIZE=x Sets the file cache size.

For example, if you want to scan your file system immediately, type sfc /scannow at your MSDOS prompt. So, to using it, open your MSDOS console first by click Start - Run, type cmd in textbox then hit Enter.

And don't forget to prepare your Windows XP Setup CD, because sfc command will asked for replace the changed file system that found during scanning progress.

5 comments

  1. José Solana // November 18, 2007 at 4:44 PM

    Great!!! but.. =C I need a Original Xp... I cant do it with my Cd

    But, I will do it some day

  2. shekar // April 12, 2009 at 6:42 AM

    Thanks very much for this very important tweak.

  3. boxmeister // September 22, 2009 at 12:46 PM

    I think you can with your cd too.
    Just copy the i386 folder from your cd to the root of one of your hardisk then point to that location in registry.

  4. Anonymous // September 29, 2009 at 2:10 PM

    @shekar its not a tweak you idiot.

  5. Anonymous // December 29, 2009 at 10:06 AM

    what if sfc has been "corrupted" ?
    is there a way to run sfc from a cd ?

    thanks