Akshay said:
Recently my sys was affected by some tengo virus. Kaspersky detected it and disinfected around 25 files mostly from \system32 directory. But I think that kaspersky deleted/modified those files instead of cleaning them.
Now even files like cmd.exe, calc, spider, solitaire, etc. cannot be found. I copied some files from \servicepackfiles\i386. But how do I automatically restore sys files? I use XP + SP2. Which cd will be required for restoration of files?
Boot the computer using your XP CD. When you see the "Welcome To Setup" screen, you will see these options below:
1) To setup Windows XP now, press ENTER.
2) To repair a Windows XP installation using Recovery Console, press R.
3) To quit Setup without installing Windows XP, press F3.
Press Enter to start the Windows setup (DO NOT press 'R' and go to recovery console). Accept the License Agreement and Windows will search for existing Windows installations. Select the XP installation you want to repair from the list and press R to start the repair. Setup will copy the necessary files to the hard drive and reboot. Do not press any key to boot from CD when the message appears. Setup will continue as if it were doing a clean install, but your applications and settings will remain intact! [Well, if REPAIR is not one of the options, END setup. Or else you will delete your Windows folder and the Documents and Settings folders] You should exit setup if the repair option is not available and consider OTHER options stated below.
This is a possible Fix by reconfiguring boot.ini using Recovery Console.
1) Boot with XP CD or 6 floppy boot disk set.
2) Press R to load the Recovery Console.
3) Type bootcfg.
4) This should fix any boot.ini errors causing setup not to see the XP OS install.
5) Try the repair install.
If all these don't work, Reboot. This time press R to repair the Windows XP installation using Recovery Console. If your CD or DVD drive letter is say H: give these commands:
copy H:\i386\ntldr C:\
copy H:\i386\ntdetect.com C:\
And the following two commands might be needed
1) Type: attrib -h -r -s C:\boot.ini del C:\boot.ini
2) Type: BootCfg /Rebuild
As these two commands will get rid of any damaged boot.ini, search the disk for systems and make a new one. This might even result in a damaged windows reappearing; but gives another chance of getting at the repair.
Source of Info: *michaelstevenstech.com/XPrepairinstall.htm