Recover Hidden Files From Flash Drives or External Hard Disks Due to Virus Infection

If the files and folders in your external hard disk or flash drive have turned into shortcuts or are hidden, here is one solution to recover your data. Operating system used – Windows 7.

  1. Install good antivirus and scan entire computer including the flash drive/external hard disk.
  2. Go to Control Panel, Folder Options, select VIEW tab, select “Show hidden files, folders and drives” and uncheck “Hide protected operating system files (recommended)” now click APPLY

    Folder Options
    Folder Options
  3. Open command prompt (press Win+R, type cmd, press enter), assuming ‘G:‘ as the letter of affected drive, enter this command-

    attrib -h -r -s /s /d g:\*.*

    replace ‘g:’ with other drive letter if needed.

You can check your flash drive/external hard disk, the data should be visible. You can restore the original folder options.