I have a flash drive that has autorun.inf on it, (not really sure why since I didn't actually use it), and when I went through command prompt as administrator, changed it to E:, (which was the USB letter drive), confirmed the virus was in the drive with dir /w/a, and used the del autorun.inf command, all I got was access denied. I've tried a number of different suggestions on how to remove it, but anything involving trying to delete autorun itself gets access denied. How do I get around it?
Sorry to hear that. You must specify the letter of the USB, namely the letter E: in command prompt. Don't use the letter C: which corresponds to the computer's hard drive.
You can try to start Windows in Safe Mode and then perform the above steps to delete the autorun.inf file. If you're still unable to delete that file, the best way is to format your USB drive. Quit the Safe Mode by restarting your computer.
In File Explorer, go to This PC. Right-click on the USB drive and choose Format. Click Restore device defaults > Start. Note: Copy all your personal files to your computer before formatting!