Skip to content

Instantly share code, notes, and snippets.

@neilmaledev
Created January 19, 2019 09:54
Show Gist options
  • Save neilmaledev/73f16e61264f71d4dbcef79efcdf0da5 to your computer and use it in GitHub Desktop.
Save neilmaledev/73f16e61264f71d4dbcef79efcdf0da5 to your computer and use it in GitHub Desktop.
How to Remove Shortcut Virus From Pendrive / USB Drive.
If your USB drive doesn’t have important files you can try to Format it, but if it contains important files then you are not going to format it.
To Remove Shortcut Virus manually follow the Steps Below.
Step 1. Go to Start and Search for cmd, as it appears in start menu Right Click on it and Click “Run as Administrator“
Step 2. Navigate to Flash Drive by typing its letter. [ Let’s Say it is i ], to find your USB drive letter open “My Computer” and check for the letter, type i: and hit enter.
Step 3. Type ” del *.lnk ” (without quote) in cmd window and Hit Enter on your Keyboard.
Step 4. Now type ” attrib -s -r -h *.* /s /d /l ” ( without quote ) and hit Enter .
It will take few seconds to recover all your files, Now open your Flash Drive you will get all of your files back.
[Any mistake in above command may cause data loss so be careful while executing del *.lnk command]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment