How to remove shortcut Virus using Command Prompt (CMD)

Shortcut Virus:

Shortcut Virus is a virus which comes automatically from USB/SD card/Pendrive. There are many shortcut virus remover shoftwares but the best & easiest way is usuing “Command Prompt” known as CMD.

How to remove shortcut virus usuing CMD?

Step 1: Connect your infected USB storage/Pen drive/SD card with your Computer.

Step 2: Press (Windows key + R) in your keyboard. then Type CMD in Run menu then press Enter in keyboard.


OR: go to start menu,type cmd in search option,click in cmd.exe

cmd from menu

Then Command Prompt will appear.

Step 3: Then type this following command in Command prompt: attrib -h -r -s /s /d #:*. (Replace # by the USB drive letter) and press Enter. (For example: If your drive letter is M, then the command is attrib -h -r -s /s /d M:*.)

cmd prompt

Where M is the Drive letter.i.e:  Removeable Disk (M)

Windows view


Step 4: Then close the Command prompt menu. go to your USB/SD card/Pendrive. You will see the shortcuts with main contents & can delete the shortcuts easily.


Thank you for  seeing this  post. Stay with our  page. For any help you can email me. Email: [email protected]

1 thought on “How to remove shortcut Virus using Command Prompt (CMD)

Leave a Reply