How to Remove Shortcut Virus From Pendrive / USB Drive? Open CMD (command prompt). [Go to Run -> type CMD ->Hit enter] Type the name of your drive or removal drive and a colon after it and hit enter. [Example:- e:] Now type:attrib -h -r -s /s /d e :\*.* (Replace e: with the drive name of your drive) Press enter. Now the shortcut virus is removed from your PC