How to Recover Data from USB Drive Affected with Shortcut Virus

Post written by
A very large number of computers are affected by the USB viruses when plugged in. Not all viruses can be deleted totally even by the top antivirus software. Antivirus software may detect the virus but can’t delete it from USB drive. One such frustrating virus is well known ‘shortcut virus’. When ever the USB affected with shortcut virus, every piece of data in it is shown as shortcut and it will not be opened. In case if it opens, it affects the system also there by spreading the virus to every USB plugged in to it.

Shortcut-virus-removed

Where has the data gone?

The data will exits in your USB drive. DO NOT FORMAT THE DRIVE AT ANY COST, YOU NEVER BE ABLE TO GET YOUR DATA BACK. Shortcut virus is considered as prank played to frighten people by showing useless shortcuts instead of data. Actually, the data is hidden in the drive, We’ll just have to unhide the data. Let’s take a look the following process to unhide the data using command prompt.

Recovering Data

Recovering the data is the hard part when it comes to shortcut virus. You may think using a data recovery software, you can easily bring back your data from your drive. You may bring your data back until there is data detected by the recovery software. Probably it can’t.
Follow these steps I have come across in recovering the data without any harm to it from the affected USB drive



  • Press ‘Windows button + R’. This will bring up the ‘run’ prompt. Type ‘cmd’ and press ‘Enter’. ‘Command prompt’ will be open.
  • Carefully type attrib -h -r -s /s /d f:\*.* and press ‘Enter’. ( ‘f’ is my USB drive in my case).

    Shortcut-virus-removed
     
    Or else, type f: and press ‘Enter’. (remember ‘f’ is USB drive here). You will enter in to your USB drive. Now type the following attrib -h -r -s /s /d *.*
  • Then open your USB drive. You may find the shortcuts separated from the original data. Copy your data and save it another location in your hard drive or desktop.
  • Check you data once if you could recover the entire or only some of it.
    You’re done!

What happened in command prompt?

The command prompt isn’t a wizard to do this which your best ant viruses can’t. It is the hidden feature of windows family. The ‘attrib’ is the attribute command which is used to add or remove attributes to a files in a drive or folder. The parameters

Parameters Work
-h removes the hidden attribute for the files
-r removes the read-only attribute for the files
-s removes the system file attribute
/S processes matching files in the current folder and sub folders
/D processes folders as well
f:\*.* refers all files with all extensions from the USB drive

By the way, Congratulations for recovering your data! Comment your thanks if you like this post!

Comments