How to Restore Hidden Folders and Files by a Virus on Your Memory Card

Sometimes, if a computer is not correctly protected, it may get infected by a virus. However, not all viruses shut down our computers right away and it is possible that it takes some time before you realise there’s a virus on it - and you can plug your memory card during that period. One of the consequences of infected memory cards is that all the folders and files on it become hidden. If this is your case and you are searching for a solution, then keep reading - this article discusses how to get back hidden files and folders.


Before you go through the following steps, make sure that your files and folders are not simply in hidden mode.

If this is not the case, make sure the files and folders are not deleted. You can do that by plugging your memory card into your computer. Next, open the directory and right click on the empty space and select Properties. This way, you will see the available space on your memory card. If all the files and folders are hidden and not deleted, then the space won’t be entirely free.

Another way to do this is to scan your memory card with your antivirus program. This procedure will inform you about the number of files scanned. Once again, if they are hidden and not deleted, the number will be higher than zero.

Remove Virus with a Program

You can delete autorun.inf files with a program:

Download and install Autorun Exterminator or a similar software.

Double-click on the program.

Now plug your memory card.

This will remove the autorun.inf files from your memory card and also from the drives.

Your files and folders should now be visible on your memory card.

Remove Manually

You can also do it manually by following these steps:

Plug your memory card.

Click on the Start button (Windows icon on the desktop).

(Windows icon on the desktop). Type Run and press Enter .

and press . Now type cmd and press OK .

and press . Let’s assume your card is called G. Type (or copy and paste) attrib -h -r -s /s /d g:*.* in the Command Prompt. Note that you should replace the letter G with the letter of your memory card.

Your files and folders should now be visible on your memory card.


There is one more thing that you can do and that we recommend:

Download and install Malwarebytes.

Open and set it to Full scan and then perform it (the default selected option is Quick scan).

Photo: Unsplash

Hunter Jones

Hunter Jones

Next Post

Leave a Reply

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