Windows computers are prone to viruses and malwares. One of the most common virus in Windows PC is shortcut virus, which gets easily transferred in removable devices like Pen drives and infect computers. Have you ever wondered how you can permanently remove shortcut virus from PC or Pen drive to fix your computer ? Today am going to share a tutorial to remove shortcut viruses permanently.

Usually when a PC or pen drive is infected by malicious shortcut viruses then almost all files and folders get changed into shortcut files and original ones get hidden. This is really very frustrating you can even loose your important files if your system in infected.

Shortcut virus spreads from one computer to another through pendrives,flash drives, memory cards exchanges or through internet/Bluetooth connections and get viral .

The most common worm found in removable drives is autorun.inf which keeps on multiplying and infect your system by creating unlimited shortcuts of files and folders.

I believe you must have ever faced this weird situation when all of your files are converted into shortcuts and you don’t have any chance to recover your files. Right ? Even I came across this situation when I had no option to remove shortcut virus, then I researched about it on the internet and luckily found working ways which worked like charm.

Today I am going to share with you how you can recover your windows PC, pendrive and laptop from harmful shortcut viruses.

Types Of Shortcut Virus

There are two kinds of shortcut virus in windows which windows users generally come across.

  1. File and Folder Shortcut Virus

    This shortcut virus is common for most of the windows users who don’t upgrade their antivirus programs for some reason or if they are not using them.

    Shortcut virus in pc
    Files and folder shortcut virus has a tendency to replicate all of your files and folders in your pendrive or PC/Laptop in to shortcuts and make your original folder and files hidden and not accessible.

    This shortcut virus can lead you into serious problems as it does not leave any way to open your original files by clicking on the shortcuts.

    It is not suggested to click on any of the shortcut file and folder because as soon as you will click on it, the virus may start duplicating itself to its multiples by executing malicious scrips in the background that can steal your confidential data as well.

  2. Pen drive Shortcut Virus

    pen drive short cut virusPen drive, memory cards or flash drive shortcut virus are trojan and can cause a very serious harm with your computer. It is always advisable to use updated antivirus in your PC.

    It appends each file and folder in your removable devices and put them in one hidden folder and creates a shortcut executable file (.exe) of your removable drive with the same icon and name.

    It will leave no other option other than clicking on it and once you will click on it, it will execute malicious programs in your PC to steal your personal information and to spy your activities.

Ways To Remove Shortcut Virus Permanently

  1. Removing Shortcut Virus Using CMD Method (Command Prompt)

    If you do not wish to install any other shortcut virus remover application , then you can simply remove shortcut virus from your PC/laptop or pendrive by using a command prompt (CMD). Even if you are a non-techy person then also you can easily remove shortcut virus from your pendrive or PC by following the CMD tutorial.

    Steps To Delete Shortcut Virus By Using CMD:

    1. Open command prompt (CMD). (Go to Run >> type CMD >> Hit enter )
    2. Type the drive letter of your removable device and a colon after it and hit enter. (Eg: g:)
    3. Now type: attrib g:*.* /d /s -h -r -s . (Replace g: with the drive name of your drive)
    4. Hit enter.

    remove shortcut virus by using CMD


  2. Deleting Shortcut Virus Using Shortcut Virus Removal Tool

    If you do not want to waste your time in commands or you are not a tech savvy guy, then you still have option to remove shortcut virus by using software that will eliminate virus on the go. I have personally tried this tool and it worked like charm . It will automatically removes all shortcut files and folders and recover your original files and folders and it will not even ask you to do something manually. It is the quickest and easiest way to delete shortcut virus from your pendrive, computer or laptop.

    1. Download the tool from the below link. It is less than 1 MB
    2. This is a click-to-run application and does not need installation. Once the downloading is completed, open it and select any one option from “Pen drive” or Computer.
    3. Now you need to choose the drive which is infected and from which the shortcut virus needs to be eliminated and then hit scan button.
    4. It will automatically detects for the shortcut virus within seconds and will give you an option to select all and delete the viruses in one click.
  3. Shortcut Virus Removal With BAT File [Batch File]

    Have you ever heard about batch file(.BAT) programming ? If no then there is no need to worry as I have mentioned simple steps to remove shortcut virus from your PC by creating a BAT file and executing it. You do not need any extra tools to create a BAT file but just a Windows machine and notepad. This method is not very popular, however if the above two methods that I have mentioned does not work then you can give a try by using this method to remove shortcut virus from your PC or pendrive/memory card.

    1. Open Notepad from your computer/laptop.
    2. Type or copy the below code as it is on notepad.
      @echo off
      attrib -h -s -r -a /s /d Drive:*.*
      attrib -h -s -r -a /s /d Drive:*.*
      attrib -h -s -r -a /s /d Drive:*.*
      @echo complete
    3. Make sure to replace Drive with your drive name. Eg: F:
    4. Now click on Save As… by clicking on File tab in notepad and change the save as type to “All files(*.*)” from “Text documents” and rename it to removeshortcutvirus.bat and save it on your desktop.
    5. Now close notepad and go to desktop and double click on the BAT file that you have just created.
    6. All shortcut viruses from the respective drive will now be removed in couple of seconds and your original files will be back. Enjoy.
  4. Remove Shortcut Virus By Tweaking Registry Files [Method 4]

    It is one of the most simple ways to fix your computer infected by shortcut virus as you do not need to download any third party tool to try out this method but this method is only recommended only if  you know what you are doing otherwise it is not suggested to use this method because it may screw your system also if anything goes wrong.

    1. Open the Task Manager by pressing Ctrl + Shift + Esc ,or you can also open it by a doing a Right Click on your Taskbar and then clicking on “Open Task Manager“.
    2. In the Processes tab, scroll down to find something like wscript.exe . Click on it and click End Processes.
    3. Open Run by pressing Win+R keys and then type regedit and hit Enter. This will open the Registry Editor.
    4. In the top left pane of registry editor, navigate to HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Run
    5. Try to Look for the registry key odwcamszas , just right click on it and delete it.

    Please note that there are chances that even after following the above mentioned steps correctly, you might not find the specified registry key if your system is highly infected, so in that case you can skip this method.

Tips To Prevent Shortcut Viruses In Future

Prevention is always better than the cure. Its highly recommended to take few precautions to keep your computer away from any kind of shortcut virus or trojans. You should always use updated antivirus and firewalls to keep virus away from your PC. We have listed down the points below that you need to follow always to make your computer virus free.

  • Always keep your antivirus up to date.
  • Make sure you are only opening any removable disk after scanning.
  • If you do not have any antivirus, then keep your Bluetooth turned off.
  • Avoid plugging-in any USB drive if your antivirus is not updated.
  • Keep running boot scans once in two-three weeks.
  • Avoid opening any file/folder by double clicking on it because many malicious scripts hidden in a file or folder gets executed only when someone double clicks on them. To be on a safer side, open a folder/file by doing a right click on it and then click on open.


  1. Bypass Torrent Download In Office
  2. Trick To Make Your Smartphone As Your Medical Assistant
  3. Trick To Post Audio Comment In Facebook


  1. When i connected my pendrive to my laptop the drive icon is showing as shortcut.but none of the files and folders are affected.that is all the files are under this shortcut .when i clicked that shortcut ican access my files.the problem is that all the files gone to under a single shortcut.when i open the properties window by right clicking it it shows target location as rundll.exe in system to solve this

  2. Hey Rajat,
    I like to say thanks from the bottom of my heart to you Rajat for sharing this post. I’m facing this problem from many days but didn’t get the solution, but the guide you have shared is really worked for me.
    Thanks again for solving my problem.
    Keep sharing 🙂
    – Alexa

  3. Above written process might be helpful but I think best way to remove it is installing Microsoft security essential because I have removed many time its my personal experience thanks for above idea I will try your ideaa

  4. Hey Rajat,
    An impressive and interesting information to how removed Shortcut Virus From Pendrive Quickly, A very innovative ideas to shared with us, it’s instant worked whenever I used.
    But I’ve a more idea’s remove of its very easily:
    1. Tweaking Config
    2. Download Shortcut Virus Remover
    3. Steps to Use Kill Amvo VBScript File

    Thanks for sharing a Shortest way to remove Virus and great effort or enjoyed to reading this article. Thumb’s up.. 🙂

  5. Hello,

    Can you provide any solution to remove the virus after I have already clicked on the shortcut.. It seems that the virus has infected my system and as soon as I connect any pen drive, it becomes a shortcut. Please reply asap.


  6. Wow great work on this post dear,i easily safe my pendrive from virus ,Thank you so much dear for this informative post.I am going to bookmark this site.

  7. am having movie.bat virus in local disk D and E. and evrytime i found a cmd prompt window with title [email protected]=VIRUS inside that it contains press any key to continue… and if i press any key means it will close. when i tried to find its location it says system32/cmd.exe. i also checked startup. i cannot delete it. suggest me a solution or any antivirus for this

  8. I tried using cmd and bat file which is metgid 1 n 3.
    In case of method 1, it seemed to work at first. The shortcut is gone and i can see my datas. I deleted unnecessary files like he explained. Everything seemed alright but i tried ejecting the flash drive and plugging it again and thus here comes the problem again, the same problem which is very irritating. I dnt how it works for u people, but for me it simply doesn’t work on that method.

    In case of method 3, i created the file save as exactly as he told and nothing happen. That’s it! Nothing happened!!

  9. THANK YOU SO MUCH. It says “ACCESS DENIED” But when I checked my drive, all my files are copied in one folder and it worked properly without those shortcut files. Thank you 🙂


Please enter your comment!
Please enter your name here