2
Thanks

A few words of thanks would be greatly appreciated.

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.

Beforehand

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).
  • Type Run and press Enter.
  • Now type cmd and press OK.
  • 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.

Further

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

2
Thanks

A few words of thanks would be greatly appreciated.

Ask a question
CCM is a leading international tech website. Our content is written in collaboration with IT experts, under the direction of Jean-François Pillou, founder of CCM.net. CCM reaches more than 50 million unique visitors per month and is available in 11 languages.
Related
This document, titled « How to Restore Hidden Folders and Files by a Virus on Your Memory Card », is available under the Creative Commons license. Any copy, reuse, or modification of the content should be sufficiently credited to CCM (ccm.net).