Remove Shortcut Virus From Pen Drive & SD Card

Using command prompt

Follow the steps below to remove shortcut virus using command prompt (CMD):

Run Command prompt as Administrator. 

(Windows key + R > Type CMD & press ENTER, 
 or 
search CMD > Right click to CMD and Select “Run as Administrator”
 or 
right click over Start button and select command prompt (Admin))

cmd-admin-vt

Connect your infected USB storage (Pen drive, SD card, etc.) with your Computer.

Scan USB with an antivirus program (Not compulsory but its effective) and if the antivirus found some virus or threats, so delete it.

Type the following command in Command prompt:  attrib -h -r -s /s /d X:\*.*, (Where, X is the USB drive letter) and press Enter. (For example: If your drive letter is D, then the command is attrib -h -r -s /s /d D:\*.*)

cmd-attrib-cmd

Copy all data from USB flash drive to your computer.

Format the USB drive.

And, copy all data back to the USB flash drive.


Now all Shortcut files are fixed and working as normal files. The reason why I suggest you to format the USB is because there was some unknown files automatically generate as you use the command.

Comments

Popular posts from this blog

Python Programming

how to free port 80 in windows

Adding a New Protocol IN NS2 (NETWORK SIMULATOR)