XP system file damage repair method (1)

  

Unexpected restart, installed incompatible software, malicious program intrusion, accidental deletion of files... There are too many possibilities to damage our system files, and The most direct manifestation of system file damage is system instability, frequent errors, and so on. In the Windows 98 era, it is relatively simple to deal with this situation, put the installation CD and then run SFC (System File Check, system file check program), restore the damaged system files on the line, but in the Windows 2000/XP era, this The repair method becomes complicated, because the system is often upgraded online, and the system files in the original installation CD have become the old version. Without a CD, how should I repair a damaged system?

First, the hard disk is out, let the CD off work

Click "Start → Run", enter "sfc /scannow" Enter will start to check the system file, when the SFC checks that there is a system file is When it is replaced or lost, it will prompt you to insert the Windows XP installation CD to repair it (see Figure 1). At this time, you may need to rummaging through the Windows XP installation CD. This is the first big problem with SFC. Many friends directly copy the installation files on the Windows XP CD to the hard disk. Is it possible to use SFC to directly use the Windows XP installation files on the hard disk when repairing system files?



For example, if you have backed up the Windows XP installation files to the E:\\winxp directory, run regedit to open the "Registry Editor" and navigate to [HKEY_LOCAL_MACHINE\\SOFTWARE \\Microsoft\\Windows\\CurrentVersion\\Setup] primary key, first modify the "CDInstall" key value data to "0" on the right side, and then change the values ​​of the two key values ​​"ServicePackSourcePath" and "SourcePath" to "E: \\winxp" (see Figure 2).


When you run the "sfc /scannow" command later, you will find that it can completely and automatically repair the system files, no longer insert the CD prompt.

Tips

Run CMD to open the "Command Prompt" and enter the "sfc /?" command to view the detailed parameters of the "System File Checker". In addition, many command-line programs under the "command prompt" can use this parameter to view detailed parameters, such as "-?" and "/help".


Copyright © Windows knowledge All Rights Reserved