Have your Pendrive ever encountered with shortcut virus? If yes then you would definitely know how irritating this virus is. It creates shortcut of every file or folder in the directories. The main source of this virus is plugging in pen drive with those PCs which don’t have antivirus installed. Normally, people share data with others without bothering that other PC has antivirus installed or not and got pen drive or any external storage device effected/corrupted. We have a trick to remove shortcut virus from pen drive and protect your data and device. You can remove shortcut virus with command prompt.
- Plugin your infected USB/Pen Drive in to the PC
- Open the Command Prompt
3. Copy this command in Command Prompt
ATTRIB -H -R -S /S /D G:*.*
You can replace G with your Pen Drive letter.
Attrib command represents the attributes of the drive
-H shows the all hidden files in our USB drive.
-R recreates the files on our storage device.
-S broken the link of files from system.
When you run this command, it will remove the shortcut virus from the pen drive. It is recommended to backup you data from pen/flash drive to another drive and format the pen drive.