How to unhide your files after a virus attack


The most common virus I see here in NZ is one that makes all the files/folders on the root of the drive hidden system files. Then it makes a bunch of shortcuts with the same file names as the hidden files. But all the shortcuts lead to a virus. It’s very simple to fix. It runs rampant among flash drives as they are plugged into many different computers.

Please note this virus is easily blocked if antivirus software is already on the computer you plug the infected drive into.

To unhide your files, pick an option below.

1st option:
Just download this file UnhideFiles.bat and put it on the root of the flash drive or hard drive you are trying to fix.
You may get a security warning, ignore it. If you are unsure of the cleanliness of the file, use the option below.

2nd option (little harder, but safer):
Open a notepad text document.

attrib -h -r -s /s /d *?

then save as a .bat file.
-h is for not hidden
-r for not read only

-s for not system file

NOTE: Requires Administrator Privileges to run this file!

Double click to open it, a command prompt window will open.

When the window closes, every file is unhid and back to normal, then just delete the viruses.

Best to have an antivirus program on the computer you’re using as well.
I recommend Avira Free Antivirus

One thought on “How to unhide your files after a virus attack

  1. Take note that after making your hidden files visible, thoroughly scan your flash drive for viruses using your preferred antivirus program in order to prevent the files to become hidden again.

Leave a Reply

Your email address will not be published. Required fields are marked *