
Any discovered removable media are handled by AutoPlay. If an AutoRun task is specified it is executed immediately without user interaction.ĭrives of type DRIVE_CDROM invoke AutoPlay if no autorun.inf file is found.ĭrives of type DRIVE_REMOVABLE do not use the autorun.inf file. The "AutoRun task" is the application specified by the open or shellexecute keys. On any drive type, the autorun.inf is read, parsed and instructions followed immediately and silently. How an inf file is handled depends on the version of Windows in use, the volume drive type and certain Registry settings.Īssuming Registry settings allow, the following autorun.inf handling takes place: The mere existence of an autorun.inf file on a medium does not mean that Windows will automatically read it or use its settings. This functionality was removed in Windows 7 and a patch for Windows XP and Vista was released on Augand included in Microsoft Automatic Updates on February 8, 2011.

Settings that indicate the presence of drivers.Īutorun.inf has been used to execute a malicious program automatically, without the user knowing.Settings that alter AutoPlay detection routines or search parameters.The default command that runs when the user double-clicks the drive icon.Commands for the menu that appears when the user right-clicks the drive icon.The name of a file that contains an icon that represents the medium in Explorer (instead of the standard drive icon).The name and the location of a program to call when the medium is inserted (the "AutoRun task").ini file, containing information and commands as "key=value" pairs, grouped into sections. The structure is that of a classic Windows. The autorun.inf fileĪutorun.inf is an ASCII text file located in the root folder of a CD-ROM or other volume device medium (See AutoPlay device types). The simplest autorun.inf files have just two settings: one specifying an icon to represent the CD in Windows Explorer (or "My Computer") and one specifying which application to run.Įxtra settings have been added in successive versions of Windows to support AutoPlay and other new features. By placing settings in an autorun.inf file, manufacturers could decide what actions were taken when their CD-ROM was inserted. AutoRun enabled application CD-ROMs to automatically launch a program which could then guide the user through the installation process. The AutoRun component was introduced in Windows 95 as a way of reducing support costs. As Windows has a case-insensitive view of filenames, the autorun.inf file can be stored as AutoRun.inf or Autorun.INF or any other case combination. For the file to be discovered and used by these component, it must be located in the root directory of a volume. An autorun.inf file is a text file that can be used by the AutoRun and AutoPlay components of Microsoft Windows operating systems.
