Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

🛡️ Remove Shortcut Virus (CMD Method)

This guide helps you remove the Shortcut Virus from your USB drive or local drive using Command Prompt in Windows.

⚠️ What is Shortcut Virus?

The Shortcut Virus hides your original files and replaces them with .lnk shortcut files. Your data is usually still safe — just hidden.

💻 Steps to Remove Shortcut Virus

1️⃣ Open Command Prompt

  • Press Win + R
  • Type cmd
  • Press Enter

2️⃣ Go to Your Infected Drive

Example: if your pendrive is F:

F:

3️⃣ Delete Shortcut Files

del * .lnk

When it asks for confirmation (Are you sure (Y/N)?):

y

4️⃣ Restore Hidden Files

attrib -s -r -h *.* /s /d /l

⚙️ What This Command Does

Command Purpose
del * .lnk Deletes all shortcut files
attrib -s -r -h . /s /d /l Removes hidden, system, and read-only attributes from all files

✅ After Running

  • Your original files should become visible again.
  • If files still don't appear, scan your system with updated antivirus software.

🚨 Important Notes

  • This method works only if files are hidden (not deleted).
  • Always scan your PC with antivirus after cleaning.
  • Avoid using unknown computers with your USB drive.

🔐 Stay Safe

To prevent shortcut virus in future:

  • Disable AutoRun
  • Keep antivirus updated
  • Avoid suspicious files

About

A simple CMD tool to remove shortcut virus and restore hidden files on USB drives and local drives.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors