Remove Shortcut Virus From USB Flash Drive Using Command Prompt (cmd) Or Batch File Easily

How To Remove Shortcut Virus From USB Without Deleting Files Or Formatting USB (Manually) 

You can remove shortcut virus from USB easily by using either command prompt or by creating a batch file.

1. Open Command Prompt (Run as an Administrator) and pate the following code:

attrib -h -s -r -a /s /d G:*.*

Note: Here G is your USB Flash Drive (Pen Drive) Letter.

2. Open notepad and paste the following commands in it:

@echo off
attrib -h -s -r -a /s /d G:*.*
attrib -h -s -r -a /s /d G:*.*
attrib -h -s -r -a /s /d G:*.*
@echo complete

Note: Here G is your USB Flash Drive (Pen Drive) Letter.

Now save the notepad as a .bat which is an extension for batch file. Now, open your batch file by double click on it or select the file and press enter key to run it.

Comments

Popular posts from this blog

How To Fix Twitter Image Preview Not Working For Blogger (2023)

How To Edit Facebook Reels After Posting (2023)

How To Set Default Audience For Posts On Facebook (2023)