They all claim they can, but typically they can't. I use antivirus programs just for detecting if I have one. Sometimes they kill the virus before you get it in the first place. But when I actually find a computer that is already infected with a virus... here's my cut-and-paste speech about that:
I've been a network administrator for over 12 years now. Here's what I do about virus and spyware infections: I backup all the documents, pictures, music, etc., and then I put in the Windows CD and have it format the hard drive and start over. That's the only way to be 100% sure that all of the infections are removed. For backing up the data files, I prefer an online file host (such as http://www.drivehq.com ) instead of a USB drive because recent viruses (like Conflicker) can infect your USB drive.
What should you back up? Almost always these days, if you just back up your "My Documents" folder (and the My Documents folders for other users on the computer), you'll have saved everything. Microsoft and third party software manufacturers are becoming very good at making sure all of your stuff goes into that folder, or a subfolder (such as My Pictures).
For the future, I recommend that you use Mozy Home Free Edition to keep your documents backed up online. Then you won't have to hesitate if you want to ever reformat your computer again. Here is a YouTube video that I made about how to use Mozy: http://www.youtube.com/watch?v=RmhAoPCmOdY
I also recommend installing Site Advisor at http://www.siteadvisor.com. It will pop up a red balloon any time you go to a web site that has malicious downloads. It will also put red, yellow, and green icons next to your Google and Yahoo search results.
Lastly, here are my recommendations for anti-virus products:
All antivirus do just as well at detecting viruses. So the best antivirus is a free one. Here are three free ones that you can choose from:
AVG Free Edition: http://free.grisoft.com
Avast 4 Home: http://www.avast.com/eng/avast_4_home.html
Avira Antivir Personal: http://www.free-av.com/en/download/1/avira_antivir_personal__free_antivirus.html
To get the actual comparisons of how every anti-virus program compares with the competition, go to the following link check out their comparative tests:
http://www.av-comparatives.org/