Emergency recovery of damaged Windows systems (2)

  
        In the first-aid case of the Windows system running abnormally caused by the loss of the system DLL file, we do not need to re-install the operating system, just need to re-register the DLL files that have been lost, the system can be restored to normal operation. It is. Considering that we don't know which DLL file is damaged or lost, we can use the following method to re-register all the DLL files of the system, instead of needing to be alone or Several DLL files are registered:

First open a file editing program like Notepad, and then enter the following command line code in the corresponding program interface:

@echooff

for %1in(%windir%\\system32\\*.dll)doregsvr32.exe/s%1

Save the above command line code as a batch file with the extension BAT, for example, here I assume The code content is saved as a repair.bat file; secondly, a shortcut icon is created for the repair.bat file, and the shortcut icon is directly dragged and dropped onto the system desktop. When it is necessary to re-register all the DLL files in the system in the future, we Just double-click the shortcut icon of the repair.bat file and the system will automatically start re-registering all DLL files. Once all the DLL files have been re-registered, we may try to run the Windows system again. I believe the system will be very normal at this time!

5, restore the original file

If the failure of the Windows system is not normal due to the system registry was accidentally destroyed, then we can use the regular copy command to the original system The registry information is directly copied to the corresponding directory of the system, so that the purpose of recovering damaged system files can be quickly realized. Since the Windows system is successfully installed for the first time, the original registry information will be automatically saved to the Repair subdirectory under the system installation directory, so we only need to copy the registry information under the Repair subdirectory directly to the system configuration. The directory is fine:

If the local computer only has one operating system installed, then we may wish to use the Windows98 boot CD to boot the system to the DOS command line state; if there are two installed on the local computer For the above operating system, you only need to switch the system to another system that can run normally; next, in the DOS command line state, switch the current directory to the "%windir%\\Repair" subdirectory by CD command. And execute the following string command in sequence:

copysam%windir%\\system32\\config

copysystem%windir%\\system32\\config

copysoftware%windir%\\system32\\ Config

copydefault%windir%\\system32\\config

copysecurity%windir%\\system32\\config

Once executed String command procedure, the system displays a prompt asking whether to overwrite the previous file, we direct an affirmative answer it. After the system registry information is replaced by all the original registry files, we restart the system again, I believe the system will be able to run normally.

6, system restore function

If the installation of Windows XP system in our computer, then in addition to the above method to rescue the damaged system, but also with the help of WindowsXP system-specific "System Restore Function" to restore the running status of the Windows system to normal, the following is the specific implementation steps of the method:

Click "Start" /"Programs" /"Accessories" /"System Tools
/"System Restore" command, in the system restore setup wizard interface that pops up, select the "Restore my computer to an earlier time" item, and then click the "Next" button. In the system restore point list window that pops up later, we generally select a restore point that is closer to the current time to restore the system. Once the target restore point is selected, continue to click the "Next" button, the Windows system will Can be automatically restored to the previous normal working state. It is worth mentioning that before using this function, we must create a suitable system restore point in time when the Windows system is running normally, so that it can be used in future recovery of the system!


Copyright © Windows knowledge All Rights Reserved