

You can also specify the default command that is run when the user double-clicks the icon.Īutorun.inf files are similar to.

The Autorun.inf file can also contain optional information including: Note Autorun.inf files are not supported under Windows XP for drives that return DRIVE_REMOVABLE from GetDriveType. Its primary function is to provide the system with the name and location of the application's startup program that will be run when the disc is inserted. The startup application typically installs, uninstalls, configures, and perhaps runs the application.Īutorun.inf is a text file located in the root directory of the CD-ROM that contains your application. This file specifies a setup application that will be run, along with a variety of optional settings. If it does, the system searches for a file named Autorun.inf. When a user inserts a disc into a CD-ROM drive on a AutoRun-compatible computer, the system immediately checks to see if the disc has a personal computer file system.

To enable AutoRun in your application, you simply include two essential files: This topic uses CD-ROM as an example (it was the first medium to implement this technology) but today there are many different media types that can use it. Creating an AutoRun-enabled application is a straightforward procedure.
