If your USB drive suddenly shows unfamiliar shortcuts instead of your usual folders, do not open the shortcuts or run a downloaded shortcut-removal script. The shortcut might launch a malicious program, while your original files may still be present but hidden. On Windows 11 or 10, start by scanning the computer and the USB with trusted security software. Then check whether your original files are visible before attempting data recovery.

Quick answer: Safely eject the USB if you are not ready to scan it, update your security software, and scan the Windows computer. Reconnect the USB without opening suspicious files, scan the drive, and review detected threats. Once the infection has been handled, use File Explorer > View > Show > Hidden items in Windows 11 to look for your original folders. If files are truly missing, avoid formatting or writing to the USB before considering recovery.

In This Article
    1. Scan the Windows Computer First
    2. Scan the USB Drive and Check the Results
    1. Show Hidden Files in File Explorer
    2. Use CMD to Inspect a Known File or Folder

Part 1. Is Your USB Affected by a Shortcut Virus?

A so-called USB shortcut virus is a common description for malware that uses Windows shortcut files (.lnk) and may hide the original folders. A shortcut is a link to another location or command, not the original document or photo. Some malicious shortcuts can launch harmful commands when opened. However, not every .lnk file is malicious, and a missing folder alone does not establish that your USB has a virus.

Open File Explorer to observe the drive without double-clicking any unfamiliar shortcut. If possible, enable View > Show > File name extensions in Windows 11 so that files ending in .lnk are easier to identify.

What you notice What it may mean What to do next
Folders were replaced by unfamiliar shortcuts with similar names A malicious shortcut could be pointing to a script or executable Do not open it; scan the computer and USB
The USB looks empty, but its Properties window shows used space Original folders may have Hidden/System attributes, or the directory could be damaged Scan first; then check Hidden items and verify familiar files
A few normal shortcuts appear alongside accessible folders The shortcuts may be legitimate Do not delete them as a group; inspect and scan anything unfamiliar
Files vanished and the drive is still readable They may be deleted, moved, hidden, or inaccessible Stop writing to the USB and check backups or a recovery scan if needed
The USB disconnects repeatedly or shows No Media A connection or hardware failure may be involved Stop repeated software repairs if the data is important

Useful signs include unexpected shortcut targets, new program files you did not create, and Windows Security alerts. A suspicious shortcut should be treated as potentially unsafe until your security software or a trusted technician has assessed it.

Part 2. Protect Your USB Files Before Cleaning the Infection

Malware removal and file recovery are different tasks. A security scanner may quarantine harmful files, while data recovery tools search for files that are missing. Start by reducing the chance of executing malware or overwriting recoverable data.

  1. Do not run unfamiliar files: Avoid opening unexpected .lnk, .exe, .vbs, or .bat files on the USB. Do not create a shortcut-removal BAT file from an unverified tutorial.
  2. Keep the infected drive isolated when not scanning it: Safely eject it and disconnect it until the computer is ready to run a trusted scan. Do not carry it between multiple computers to test whether a shortcut will open.
  3. Do not modify the source: Avoid formatting, DiskPart, CHKDSK, bulk attribute changes, and unverified cleanup utilities while important files are still inaccessible.
  4. Protect safe copies: If you can already identify genuine documents or photos, use a trusted, protected computer to copy only verified personal data to a different drive. Scan the copied files before opening them. Avoid copying unfamiliar programs or scripts.

If the data is irreplaceable: Consider a professional assessment before running cleanup operations that may delete infected files. No antivirus or data recovery process can guarantee that every file will remain available.

Part 3. Scan the PC and Remove Shortcut Malware from the USB

The same threat can reappear on a cleaned USB if an infected computer copies it back. Check the Windows computer first, then scan the removable drive. The exact menu may differ depending on whether Microsoft Defender Antivirus or another trusted antivirus provider is active.

Scan the Windows Computer First

Step 1. Disconnect the USB after safely ejecting it. Open Start, search for Windows Security, and select Virus & threat protection. Confirm that a working security provider is active. Do not disable real-time protection to carry out this task.

activate virus and threat protection

Step 2. Check for current security intelligence updates through your active protection provider. Under Scan options, choose an appropriate scan of the PC. A full scan is useful when you suspect files or scripts on the computer are reinfecting removable drives.

Step 3. Open Protection history to review any detections and whether removal or quarantine finished. Follow the security provider's recommended action for the identified threat. Do not restore or allow a quarantined item just because its name resembles one of your documents. See Microsoft's Protection History guidance.

Expected result: The computer's security scan finishes, and there are no unresolved relevant threat warnings. If the scanner finds an infection it cannot remove, handle that issue before reconnecting your USB for normal use.

Scan the USB Drive and Check the Results

Step 1. Reconnect the USB to the protected PC without opening its shortcuts. In File Explorer, identify the USB by its drive name and capacity.

Step 2. Right-click the USB and choose Scan with Microsoft Defender where available; in Windows 11 you may need Show more options. Alternatively, use Windows Security > Virus & threat protection > Scan options > Custom scan and select the removable drive. Other antivirus products can provide an equivalent targeted scan. Microsoft's file and folder scanning guide describes the right-click option.

windows file explorer usb drive right click menu with scan with windows defender option

Step 3. Review the detected threat names, affected paths, and recommended actions. Let the security tool quarantine or remove files it identifies as harmful. If it flags a file you believe contains important data, do not bypass protection: have the detection evaluated before restoring it.

Step 4. Scan the host PC again if the USB recreates suspicious shortcuts after cleanup. An infected Windows computer may still be the source even when the USB scan initially reports no active threat.

Expected result: The scanner reports completed actions and the suspicious shortcuts no longer execute or reappear. The absence of an alert does not establish with certainty that the drive is clean; continue to verify the original files below.

Free Download
Free Download

Part 4. Find and Unhide Original USB Files Safely

Once the threat has been handled, determine whether the original files are merely hidden. Viewing hidden items and changing a file's attributes are different operations. Neither is a substitute for malware removal, and neither restores genuinely deleted data.

Show Hidden Files in File Explorer

Step 1. Press Windows + E, select This PC, and open the USB only after it has been scanned. Do not activate unfamiliar shortcuts.

Step 2. In Windows 11, choose View > Show > Hidden items. In Windows 10, select View > Hidden items. Microsoft documents the current menu in its File Explorer guide.

windows 10 file explorer view ribbon showing hidden items checkbox for a usb drive

Step 3. If your original folders appear, confirm a familiar photo or document opens correctly before changing any attributes. Copy verified personal files to a different, healthy drive and scan the copies. Do not copy suspicious scripts or installers.

Step 4. If you want a specific, verified folder to appear during normal browsing, right-click it, open Properties, and clear Hidden when that option is available. For a folder, Windows may ask whether the change applies only to the folder or also to its contents. Choose deliberately.

If nothing appears: Do not assume the original files are deleted. Compare the USB's used space with its visible contents and consider the separate guide to showing hidden USB files or the missing-file branch in Part 6.

Use CMD to Inspect a Known File or Folder

Command Prompt can show the attributes of a folder you already recognize. Use it only after scanning the PC and USB, and do not run a whole-drive attribute-reset command. This example assumes the USB is E: and the verified folder is named Photos; check both values on your own computer.

Step 1. Search for Command Prompt and open it. Read the attributes without changing anything:

windows search showing command prompt open and run as administrator options
attrib "E:\Photos"

The letters in the output indicate file attributes: H means Hidden, S means System, and R means Read-only.

Step 2. If the folder is yours, your files have been backed up, the scan found no unresolved relevant threat, and the folder shows H but not S, you can clear only its Hidden attribute:

attrib -h "E:\Photos"

Step 3. Run attrib "E:\Photos" again and check File Explorer. This changes only the specified folder; it does not unhide every item in it. If S appears, the folder is unfamiliar, or the command fails, stop rather than force-clearing System or Read-only attributes. Microsoft's attrib reference explains the precise effect of each switch.

Do not replace this step with a batch script using del *.lnk, del *.exe, or attrib -s -r -h E:\*.* /s /d. Those commands can delete legitimate files or change attributes across the entire drive, and they do not identify or neutralize malware.

Part 5. What If the Shortcut Virus Returns or Files Are Still Missing?

If the same unfamiliar shortcuts return after scanning, the problem has not been resolved. The next action depends on whether a Windows infection persists, files are hidden, or the USB has an unrelated storage problem.

After your first scan What to check Safer next step
Shortcut files reappear after reconnecting to one PC Protection history, unresolved detections, scripts on the host PC Disconnect USB, update and rescan the PC; consider Microsoft Defender Offline
Shortcuts disappear but original folders stay invisible Hidden items setting, verified folder attributes, USB used space Check File Explorer; avoid recursive changes to System attributes
Original documents are actually missing Clean backups, deleted-file history, whether storage is still readable Stop writes and assess a file recovery scan
USB is RAW, repeatedly disconnects, or shows No Media Drive detection and physical condition Do not format or force repairs; assess recovery options or specialist help

If an infection persists, Microsoft recommends an Offline scan for malware that hides while Windows is running. On Windows 11, open Windows Security > Virus & threat protection > Scan options > Microsoft Defender Antivirus (offline scan) where that option is available. Save open work first: the PC restarts to complete the scan. Follow the official Windows Security scan instructions.

Do not delete startup registry entries at random. A legitimate startup item can look unfamiliar, and malware persistence requires identification rather than blanket registry edits. For a managed work computer or an infection that repeatedly returns, ask your IT/security team to inspect it before reconnecting company USB drives.

Formatting is not the first remedy. It changes the file system and can remove access to files you still need. Even if a USB is later reformatted after clean backups are secured, that will not remove malware still present on a separate infected computer. Formatting is a later storage decision, not a guaranteed virus-eradication technique.

Part 6. Recover Files Lost After a USB Shortcut Virus

If your original USB files were deleted or truly lost, rather than simply hidden, data recovery may be appropriate once the malware risk is contained. First check a clean backup. If Windows can still detect the USB reliably, Wondershare Recoverit USB recovery can scan supported logical data-loss cases and preview available files. It is not a shortcut-virus remover, and recovery is not guaranteed.

Step 1. Select the USB. Install Recoverit on your computer or another healthy drive, not on the USB you are trying to recover. After dealing with the active malware risk, connect the source USB and confirm it is detected. In the current Windows interface, select the matching external device using the appropriate External Devices or SD Card Recovery workflow. The official Recoverit Windows Guide documents these options; the interface can vary by version.

Step 2. Scan and inspect the results. Start a scan of the verified USB. Let it finish where practical, then use search or file filters to locate missing photos, videos, or documents. Do not run a repair command or format the source during the scan.

operations during scanning

Step 3. Preview and save to a different drive. Preview available files before selecting them. Recover the files to another healthy drive, not to the infected or damaged source USB. Scan the recovered copies before opening them, especially if they include executable or script files.

preview recovered photos

If your USB is physically damaged, shows No Media, or cannot be detected by any computer, repeated software scans are unlikely to help. See the narrower shortcut-virus file recovery guide for finding missing data, but avoid repeated scanning of an unstable device.

Related video: Recoverit's existing tutorial covers a corrupted USB and data recovery. It is a general storage-recovery reference, not a demonstration of shortcut-malware removal.

video

Recent Videos from Recoverit

View More >
Free Download
Free Download

Conclusion

To remove a USB shortcut virus safely, avoid unfamiliar shortcuts, scan the Windows computer and USB, and then check whether your real folders are simply hidden. Do not rely on BAT scripts that delete all shortcuts, broad attrib resets, random registry changes, or formatting before protecting important data. Once the infection is handled, copy accessible files to a clean location. If some files were actually lost from a USB the computer can still detect, a separate recovery scan may help.

FAQ

  • Can I remove a USB shortcut virus without formatting?
    Often, yes. Start by scanning the computer and USB with trusted security software and following its detection and quarantine guidance. Then use File Explorer to look for hidden original files. Formatting is not required merely to display hidden folders.
  • Is the attrib command a USB shortcut virus remover?
    No. attrib reads or changes Windows file attributes; it does not identify or remove malware. After the threat has been handled, it can help check a specific known folder, but avoid whole-drive changes to Hidden, System, and Read-only attributes.
  • Can I delete every .lnk shortcut file on the infected USB?
    No. Some shortcuts are legitimate, and a bulk delete command can remove files you did not intend to erase. Do not open unfamiliar shortcuts; let trusted security software identify threats before removing anything.
  • Why does the shortcut virus keep returning after I remove the links?
    A program on the Windows computer or another device may be recreating the malicious links. Disconnect the USB and rescan the host PC. If the infection persists, Microsoft Defender Offline or a trusted IT/security specialist may be appropriate.
  • How can I recover files hidden by a shortcut virus?
    After dealing with the malware risk, enable Hidden items in File Explorer and check whether your original folders return. Back up verified files. If the files were genuinely deleted or lost and the USB remains readable, consider a recovery scan and save recovered copies somewhere else.
  • Does Recoverit remove shortcut viruses?
    No. Recoverit is data recovery software, not antivirus software. Use Windows Security or another trusted security solution to handle threats. Recoverit may help retrieve recoverable files that were actually lost from a supported, detectable USB.
  • Should I format the USB to remove the virus completely?
    Do not format it while important files are inaccessible. Formatting may remove file information, and it will not clean malware that remains on a separate computer. Resolve the infection and protect the data first; only then decide whether the USB needs to be reformatted for future use.
Share article:
Get Recoverit Get Recoverit