I knew how to prevent these kind of viruses, just that someone inserted his infected usb into my laptop and opened the shortcut.
So, this drive.bat virus, when the file in the usb is deleted, it reinstalls itself. Also it is a bat file that redirects to a .js file and executes it there, whenever these viruses are deleted or even edited, they are changed immediately, so I can't remove them from the usb.
How do you delete this? I am a windows 10 user, please tell me if you need more info
NOTE: Also MSCONFIG and REGEDIT are closed immediately upon opening due to the virus, so can't work from there. I don't know if there are more programs locked by the virus. I didn't test out enough