Autorun.inf is the primary instruction file associated with the Autorun function. Autorun.inf itself is a simple AutoRun-Design-Specialtytext-based configuration file that tells the operating system which executable to start, which icon to use, and which additional menu commands to make available. In other words, autorun.inf tells Windows how to deal open the presentation and treat the contents of the CD.

But in some rare cases autorun.inf files are also created by malware. Few malwares create their autorun files and if present in CD or pen drive, they infect the system to which it is connected. Most of the antivirus do not really help to get rid of such malware autorun files.

To remove this virus there are more than one ways to do so. I am going to talk about two ways here to remove this virus. First is that one may use a software already designed for the purpose of removing autorun.inf from the system. Another is the manual method of removing the virus.

METHOD 1

A great software for this purpose is the Autorun Eater. It is not exactly a anti virus but a application that detects and removes the autorun virus in real time before it could be executed as autorun.inf. Some key features of autorun :

·Scan and remove suspicious autorun.inf files found in the root directory of all drives, C-Z, in real-time
· Scan priority(normal/high)
· Scan results are logged
· Add and remove from startup entry
· 3 optional registry fixes (Task Manager, Regedit & Folder options).
· Users are informed whenever a suspicious “autorun.inf” file is detected.
· Backup copies of suspicious “autorun.inf” file(s) are created before the original copy is removed for easy recovery.
· Status tooltip to get tool info easily without right-clicking on tray icon.


1

One of its most important option is Close Autoplay which prevents the execution of malware via the AutoPlay window.

METHOD 2

This method deals with removing the virus from the USB drive. Follow the steps below to remove the virus.

1. While the computer is still off, plugin the USB Drive.

2. Insert the Windows  CD-ROM into the CD-ROM drive. It must be the bootable Windows Installer.

3.  Start the computer from the CD-ROM drive. It will start Windows Setup screen. When the “Welcome to Setup” prompt appears.Press “R” to start the Recovery Console.

4. If asked “Which Window installation would you like to logon to” select the number. Type “1″? then Enter, if only one installation of Windows is present.

5. It will bring you to command prompt, C:Windows>

Proceed with the following command:
- Type d: (This is the drive letter of USB. It can be e: or f: defending on how many hard disk or cd drive is installed)
- Type attrib -h -r -s autorun.inf
- Type “edit autorun.inf” it will open DOS Editor and display contents as follows

==========================
[autorun]
open=file.exe
shellOpenCommand=file.exe
shellopenDefault=1
shellExploreCommand=file.exe
shellAutoplaycommand=file.exe
==========================
Take note on the file that it called to open (in above example it is file.exe)

6. Exit DOS Editor and return to command prompt.

7. Delete the file that was called to open on DOS Editor
- Type del /f /a file.exe

8. Delete autorun.inf file
- Type del /f /a autorun.inf

9. Exit Recovery Console by typing exit.

Use the method you think is fine for you. This should get you rid of the problem of autorun.inf