
In case the above explained steps or commands fail to remove the virus from your pen drive, just make use of the good and trustworthy anti-virus software which are available plenty in market. Note: Don’t forget to replace the letter “ J” with the drive letter for the pen drive shown on your systems
In case if these doesn’t work then just use attrib -h -r -s /s /d j: \*.* and wait for some time and then open your pen drive. Wait for some time and then open the pen drive.
Finally type the below command and hit Enter. “del *.lnk” and hit Enter.(without double quotes). all files have become shortcuts, then you will have to use (without double quotes) press Enter and then type For example if it is an autorun.inf then, use This will list all the files present in that drive, if you find any of the files listed above then just delete them by typing “ del” followed by full name of the file and an “ attrib” command. In the command prompt again type the drive letter (for example J) followed by colon (J:) and press enter Then type Actually virus can exist in many forms like Autorun.inf, Newfolder.exe, RAVMON.exe, New-folder.exe, SVChoste.exe etc. Identify and delete Virus: Locate and identify the virus and delete them. Note: If your USB drive doesn't show full capacity then your drive is infected with malware, read this article to Restore your USB drive back to its capacity. This will unhide all your files on the pen drive. Type attrib -r -a -s -h *.* and press enter. Now, type your Flash Drive Letter (for example J) followed with colon i.e. In Start Menu -> Click RUN -> type cmd to open the command prompt. Unhide files: Due to virus infection your important files on the pen drive might become hidden. Here are few of the tips / steps to remove virus form your pen drive that too without losing your vital data. Stop worrying and act fast!!! When you find any traces of such infection just try removing them as soon as possible, else they could replicate themselves and make your entire pen drive corrupt.
So, know how you can recover virus deleted files without any hassle now. I believe most of you might have come across such situations and even lost your vital data from the pen drives due to this. This would lead to data corruption in turn leading to loss of your vital files on these pen drives. They can be easily plugged in and out to any system this is the main reason for virus infection on these pen drives. But, pen drives are easily susceptible to virus infection when compared to other storage devices as they can be extensively used on any computer easily. We generally use pen drives in our daily life as a temporary storage device and to transfer data between the systems.