Recover Files from Virus Infected Hard Drive, Memory Card, USB Drive, etc

August 03 2017 21:50 pm/ Post By Jeffrey to File Recovery

When your computer has been infected by virus, and your anti-virus program failed to detect and kill the virus, then you connect an external storage media like memory card, USB flash drive, pen drive, hard disk, etc to your computer, you might get a big problem. All the files and folders on your devices may be get deleted or hidden. On the case that the files are hidden, you are unable to change the properties of the folder into visible as the tick box is grayed out. Once you format the device then all the data will be deleted. So what to do to fix this problem? Read the following paragraphs, and get out of the hassle. 


Part 1: Recover Hidden Files&Folders from Virus Infected Storage Media Using CMD

Part 2: Recover Virus Infected Files from Hard Drive, Memory Card, USB Flash, Pen Drive, etc with Recovery Software


Part 1: Recover Hidden Files&Folders from Virus Infected Storage Media Using CMD

This is the first thing you should try to restore the lost files. You don't need to format your device in advance. This method works effectively on all Windows PCs, including Windows 10, Windows 8, Windows 7, Windows Vista, and Windows XP. 


  1. Connect your storage media to computer. On computer, go to Start menu.

  2. Input "cmd" in a search bar and hit "Enter". After that, you will open Command Prompt (CMD) as an administrator.

  3. Navigate to drive where your data disappeared.

  4. In the panel of cmd.exe, input "attrib -h -r -s /s /d drive letter:\*.*". Take an example, if your lost files are on drive D, then input "attrib -h -r -s /s /d D:\*.*". Finally hit "\Enter".

  5. Now Windows will begin to repair your virus infected drive. The process may take sometime. Wait until the repair is completed. Check if your hidden files and folders appear at the end.

show-files-hidden-by-virus-using-cmd.png


Part 2: Recover Virus Infected Files from Hard Drive, Memory Card, USB Flash, Pen Drive, etc with Recovery Software

If your data can't be brought back through the method above, don't be nervous. You can try this one. Yolisoft Data Recovery is a professional software that can help users recover deleted, hidden, or corrupted files from virus infected device.


download-windows-version.png   download-mac-version.png


  1. Install the program on your PC or Mac.

  2. Run it and select a drive to scan. (Tip: please plug in your external storage beforehand.)

  3. Preview and choose the files you want to retrieve from the scan result.

  4. Save the files onto a safe destination place.

recover-files-from-virus-infected-drive.png


Kind warning: please install a anti-virus program on your PC and keep it opened in case of data loss in future. After your computer is infected, clean up your PC and restore it to its original condition. After the reinstalling, scan for viruses again.