What's new
  • Welcome to PHCorner Forums. Take a moment to Sign up and gain unlimited access and extra privileges that guests are not entitled to, such as: All that and more! Registration is quick, simple and absolutely free. Join our community today!

How to Remove Shortcut Viruses From USB and Memory Card

La Freak

Forum Expert
Jan 16, 2013
Reaction score

Now a day’s Pen drives and Memory cards are the most used devices to transfer data such as movies , songs , documents etc but often storage devices are infected by shortcut virus. If you connect your infected Pen drive to your system it will show files and folders having shortcuts. And in case you open the shortcut fie or folder it would infect your whole system badly.
This post will help you to remove shortcut virus from pendrive/USB and Memory card and recover the files. To remove the shortcut virus use the following steps.

Warning :Do not open the shortcut file or folder otherwise the virus could infect your system.
Step 1: Connect your Pen drive or memory card.

Step 2: Open command prompt. To open command prompt press windows button + R . Enter the command cmd in Run and press enter to open command prompt.

Step 3: Go to My computer and check out your Pen drive letter.

Step 4: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 memory card letter

Step 5: Press Enter button.

Step 6: 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.

Step 7: 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.

Tips to protect your pen drive from Virus
  • Keep your system up to date with the latest antivirus.
  • Update your antivirus program at regular interval of time.
  • Do not ever open the shortcut or virus file with the extension filename.lnk . it could badly harm your computer and could infect your other removable devices too.
  • Before opening any removable drive ( pen drive or SD card ) perform a deep scan of the removable drive.

Online statistics

Members online
Guests online
Total visitors

Forum statistics