This guide helps you remove the Shortcut Virus from your USB drive or local drive using Command Prompt in Windows.
The Shortcut Virus hides your original files and replaces them with .lnk shortcut files. Your data is usually still safe — just hidden.
- Press
Win + R - Type
cmd - Press Enter
Example: if your pendrive is F:
F:del * .lnkWhen it asks for confirmation (Are you sure (Y/N)?):
y4️⃣ Restore Hidden Files
attrib -s -r -h *.* /s /d /l| 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 |
- Your original files should become visible again.
- If files still don't appear, scan your system with updated antivirus software.
- 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.
To prevent shortcut virus in future:
- Disable AutoRun
- Keep antivirus updated
- Avoid suspicious files