Step 1: Connect your Pen drive or memory card
.Step2: Open command prompt. To open command prompt press windows button +R . Enter the command cmd in Run and press enter to open command prompt.
Step3: Go to My computer and check out your Pen drive letter.
Step4:To remove shortcut virus from pendrive type attrib-h -r -s /s /d g:\*.*in the Command prompt. Don’t forget to replace the g with your Pen drive or memorycard letter
Step5: Press Enter button.
Step6: Go back to your Pen drive or memory card. You would see both your original files and shortcut files.Delete all the shortcut and unknown files and copy your original files and folders to another drive.
Step7: At last format the Pen drive or Memory card. You have successfully remove shortcut virus from pendrive and recovered the infected files in the Pen drive.