You could use AVG Rescue CD (now available to AVG free users too) in such situations to repair your infected PC. It is a portable version of the AVG Antivirus and can be used as a bootable CD or USB flash drive. There are four other tools are available in the package which you could use to perform some other necessary functions. They are:-
Midnight CommanderWindows Registry editorPingTestDisk
Here is the step by step guide for creating AVG rescue CD/USB flash drive and removing viruses or malwares with its help.
How to create AVG Rescue CD (for USB stick)
How to create AVG Rescue CD (for USB stick)
Following steps tell you how to install AVG Rescue CD files onto a USB pen drive. The steps for installing it on a CD would be a bit more complex because you would need to download the iso file and then burn it onto the cd and make it bootable. Doing it on a USB drive is easier though.
How to Remove Virus or Spyware using AVG Rescue CD
How to Remove Virus or Spyware using AVG Rescue CD