Monday, July 11, 2016

How to Remove Shortcut Virus using CMD?

Shortut Virus is a Virus/Malware that hides your files inside a shortcut. Commonly on USB Pendrives. It doesn’t harms your files but later on, it may make themcan be a result of being corrupt or even delete all the files; depends on the type of shortcut virus.

There are many ways to delete/remove shortcut virus like using REGEDIT, WinRAR, VBScript File, other Programs like USB Fix. For now I will show you how to delete these viruses using Command Prompt(CMD), which was built -in on Windows Operating System.


Steps on how to Remove Shortcut Virus using CMD:

  • Just run CMD by clicking Windows + R (shortcut key for run), or click the Start Menu then type in cmd.
  • Type the Drive letter of your USB Pendrive then followed by "colon". Ex:  "I:" (without quotation),
  • Then type in "attrib -s -h /s /d *.*" then press enter.


  • Wait a moment then check your USB Pendrive.
  • Congatulations!


Meaning of codes above:

Attrib specifies the attribute (as you might have guessed it)
-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)
I: (example drive letter only) is the Drive Letter of your USB Pendrive










No comments:

Post a Comment