Professional Documents
Culture Documents
inf itself is a
simple text based configuration file that tells the operating system which executable to start, which icon to
use, and which additional munu commands to make available. In other words, utorun.inf tells window how
to deal open the presentation and treat to contents of the CD.
The entire sequence is initiated when to "disk change notification" polling discovers a new disk in the CD or
DVD Rom drive. Then if the " Auto insert notification" feature is enabled (it is by default), Windows chechs
in the new disk's root directory for the existence of an "autoinf" file. If found, Windows then reads and
follows the specific instructions this file defines. If no autorun.inf file is found, then Windows refers to the
new disk by ist serial number and exxcutes the default actions associated with the (data ro audio) content on
the disk.
The process or application that will automatically run when a disk is inserted.
Optionally, one can define the process or application that will run for specific Operating enviroments.
The icon that will represent your applications's CD or DVD when the drive is viewed whit My Computer or
Explorer.
Menu commands displayed when the user right-clicks the CD-Rom icon form My Computer or Explorer.
This example is used in the following section for complete definition and descriptions.
[autorun]
open=filename.exe/argument1
icon=\foldername\filename.dll,5
[autorun.mlps]
open=filename2.exe
icon=filename.icon
[autorun.alpha]
open=filename3.exe
icon=filename.ico
[autorun.ppc]
open=filename4.exe
icon=filename.ico
shell\install\=&install
shell\uninstall=&uninstall
shell\uninstall\command=uninstall.exe
shell\readme=&Read me
shell\readme\command=notepad redme.tex
shell\help=&Help
shell\help\command=helpfilename.hlp
This section describes the configuration of the Autorun.inf file and each of the potential items.
Example: open = foldername\filename.exe This will not change the current directory.
Although AutopPlay is the default menu item, you can define a different command to be the default by
including the follwoing line. shell = berb
When the user double-clicks on the icon, the command associated with this entry will be carried out.
Note: The icon defined representing your application's CD or DVD is the drive icon as viewed with My
Computer or Explorer. Vaild file types containing icons include. .ICO .BMP .EXE .DLL If the file includes
more than one icon, by default, the second icon in the files icon resource will be displayed.
Eelow are some of the commands\entries in the Autorun.inf file described beriefly. A more detailed descrip-
tion can be found at the following Microsoft page: Autorun.inf Entries
OPEN=
The OPEN command specifies the path and file name of the application that AutoRun launches when a user
inserts a disc in the drive. You can also specify parameters/arguments to the application.
ICON=
The ICON command specifies an icon which represents the AutoRun-enabled drive in the Windows user
interface. The icon is normally an .ico file, but can also be a .bmp, .exe or .dll file containg icon information.
The icon file must be in the same directory as the file specified by the OPEN command.
LABEL=
The LABEL command specifies a text label which represents the AutoRun-enabled drive in the Windows
user interface. This text label is for example in Windows Exploreer showed to the right or below the drive
icon.
SHELLEXECUTE=
The SHELLEXECUTE command starts an application or opens a doucment. Works only in newer Windows
systems.
SHELL=
The SHELL command specifies a default command for the drive's shortcut menu. The shortcut menu of the
drive is the menu that is opened when the user right click on the drive icon.
SHELL\VERB=
The SHELL\VERB command adds a custom command to the drive's shortcut menu. This custom command
can for example be used to launch an application on the CD\DVD
ACTION=
ACTION is a relative new command that was introdeced in Windows XP SP2. It is not supported in earlier
Windows. This command specifies a text that should be shown as the first option in the Windows Autoplay
dialog, together with the icon specified by the ICON. This option is always selected by default and if the
user accepts the option, the application specified by the OPEN or SHELLEXECUTE entry in the media's
Autorun.inf file is launched.
Run Commands: