But by the increasing number of users, viruses are also easily spreading through these devices, and the worst thing to happen is when your precious files got infected and deleted or are not usable anymore. And when you scan it with your anti-virus program the files are all gone. In this article i will show you how to recover those files.
No need to install any 3rd party softwares or hire any expert, you only need a windows PC and basic computer knowledge to do this.
So here's my step by step guide for you on how to recover corrupted files in your USB Flash Drive or Memory card using CMD or command prompt of windows:
Note: This trick may not work in all cases, and this will only work if your files are corrupted by virus not by manual deletion or formatting.
1. Plug your USB or MMC in a clean PC with an anti-virus program installed for higher chances of success.
2. For Windows 7 users:
Open Computer and open your USB drive folder.
Press shift then right click on the blank space inside your USB main folder. Click on "open command window here". A command window should appear, now go to step 3.
Press Windows Key + R in your keyboard, type cmd then press enter. type cd D:\ (note: change the letter D:\ with the drive letter of your USB Drive or Memory Card).
3. Copy this line of code and paste it in the command window:
attrib -s -r -h *.* /d /s
now press enter on your keyboard, and that's it!. Wait for your files to show up, large memory could be longer to process.
You files and folders should appear now, if there's a folder named _ open it and you will find more files inside it.
What the virus actually does is it hides your original files and make fake copies that when clicked spreads the infection, these fake copies are the ones detected by anti-virus and deleted. This trick will show all the hidden original files.
Again, this may not work on all cases and this trick of file recovery is only for files corrupted by viruses and not those deleted manually or by formatting, and you can post your questions in the comment box below.