Monday, February 6, 2017

How To Remove Modern Shortcut Virus In Your Flash Drives

Flash Drive


A bat file is an executable file which contains some pre-written script.

Just like the VBScript, it’s made to do certain tasks, and in our case, it’s removing the shortcut virus.

The explanation of the code:

Attrib specifies the attribute

-H : is to unhide all the files on Flash Drive (which were hidden as shortcuts due to the virus)


-R : is to create the files in your Pen Drive (recreate the shortcut files retrieving the original contents)

-S : makes all the file on your USB drive not to be the part of system again (which makes it easy to do the process)

X : is the assumed USB Drive’s Letter (you’ll have to change it according to your Pen Drive / External HDD drive’s letter)

Steps to remove shortcut virus using bat file:

@ECHO OFF
ECHO "Enter Drive letter"
set /p letter=

attrib -h -s -r -a /s /d %letter%:*.*
1. Open a Notepad File.
2. Paste the code above in it, and save it as with a .bat extension (Save As -> All Files -> .bat extension)
3. After you run the file just enter the drive letter of your flash drive.

Note: To know the drive letter of you flash drive go to “Computer” (for Windows 7), “This PC” (for Windows 8/10) or “My Computer” (for Windows XP) and check the drive letter of your flash drive. or Win+E.


See image below.


 or

for the easiest way you can download the file here and follow the Readme.txt how to use the Shortcut Virus Remover.bat. Download here.

No comments:

Post a Comment