An autorun.inf file is a text file that can be used by the AutoRun and AutoPlay components of Microsoft Windows operating systems. If there is autorun.inf virus in USB drive, each time you insert the removable media and double-click your drives to open it, virus files begin executing and infect your computer which spreads itself onto the computer by making the multiple copies of the autorun.inf and .exe files on every drive of your computer. So today I will show you how to remove virus infected files from system.

Delete autorun.inf virus infected files from computer

Steps you have to perform

1. Press Windows+R key to open Run box. Type "CMD" and hit enter to open command prompt window.
2. Navigate to the drive from where you want to delete unnecessary virus infected files by typing Drive_Letter: , such as C:

3. Enter following command to clean shortcut files created by virus

attrib a*.inf -r -a -s -h

4. Remove autorun.inf files by following command

del autorun.inf

5. If you want to run these command for multiple drives, just create the batch file for your convenience. For that, just open Notepad, copy and paste below code into it. Change the drive letter with the one your system have. For multiple drives, just paste the same code one after another but with different drive letters.

About Author

I’m Vinay Vernekar , a young Entrepreneur and a Technology blogger, currently living in Kolhapur, Maharashtra, India. Founder and Main author of Fun With Tricks. I am also running web hosting services at Host With Us and King Of Web Host. if you like this article, pin it with social media, subscribe to our newsletter. Follow me on Google Plus, Facebook, Linkedin and Twitter.