This is because of the auto-run functionality in Windows.Windows looks for autorun.inf filein the USB drive.
Autorun.inf can be deleted in two ways.
To stash your system from USB-related viruses, its safe to permanently disable auto-run functionality in Windows 10.

Delete these executables and you will be safe from the wrath of USB viruses.
This will make your Windows 10 system safer when you insert a USB drive.
The virus will not be able to run by itself.

Be sure to use the Explore option instead of double-clicking on the USB drive.
Double-clicking will trigger Windows to fire off the autorun.inf file again.
You just have to download the tool and run it on your gear to scan for viruses.

The tool will detect and remove viruses automatically.
you’re free to download thesevirus removal tools from here.
There are special virus removal apps designed to remove only specific viruses including the pendrive virus.

When you format a USB drive, all data in the storage including the virus will be deleted.
Both quick format and detailed format will remove the virus from the USB drive.
But you should take extra care when formatting the USB drive.
check that you are formatting the right drive.
Otherwise, you may lose important data which may not be recoverable easily.
In this case, you should also clean your rig from viruses using the tools discussed above.
How to recover data infected with shortcut virus in the flash drive?
When you open any file, the virus will execute itself before opening the actual folder or file.
The virus hides the actual data in the pendrive.
I hope this will be useful for you.
Do let me know whether it was useful for you or not.
37
Get weekly insights, tips and exclusive content delivered straight to your inbox.
Talk to us straight and get your questions answered right away
source: www.itechtics.com