Saturday, February 5, 2011

How to Restore File Attributes After Virus Attack

One of the things that irritate me is how my computer is suddenly attacked by viruses and cause some of the files to be hidden. Below is my favourite way to get rid of this annoyance.

1) Go to command prompt by typing cmd at Run (you can go to Run by going to Start)
2) Type the drive that has been modified by the virus. For example, your removable drive, F. Type F: and hit Enter. After that, please type the following command in your command prompt:

attrib –s –h *.* /S /D

hit enter after that.

You'll see that your files will be restored to its original attributes afterward.