How does Windows “autorun” work?
The “autorun” feature of Windows 95 and later allows a program to be executed right after a CD-ROM is inserted. For this to work, the system must have autorun enabled, and Auto Insert Notification (“AIN”) must be turned on for the CD-ROM drive. See section (4-1-1) for more information on AIN and the use of “TweakUI” to modify settings. It may also be necessary, in some configurations, to close the last session on the disc, or AIN will not work. When preparing a CD-ROM for Windows, put a text file called “autorun.inf” in the root directory that contains something like this: [autorun] open=filename.exe icon=someicon.ico When inserted, the CD-ROM will be shown in the “My Computer” window with the specified icon. If the disc is inserted on a system with AIN and autorun enabled, the program named on the “open” line will be launched. Icons must be in Windows icon or bitmap format. You can’t use a GIF or JPEG. Make it square, 32×32 pixels. If you’re going to be doing a lot of these, you may w
(2002/10/15) The “autorun” feature of Windows 95 and later allows a program to be executed right after a CD-ROM is inserted. For this to work, the system must have autorun enabled, and Auto Insert Notification (“AIN”) must be turned on for the CD-ROM drive. See section (4-1-1) for more information on AIN and the use of “TweakUI” to modify settings. It may also be necessary, in some configurations, to close the last session on the disc, or AIN will not work. When preparing a CD-ROM for Windows, put a text file called “autorun.inf” in the root directory that contains something like this: [autorun] open=filename.exe icon=someicon.ico When inserted, the CD-ROM will be shown in the “My Computer” window with the specified icon. If the disc is inserted on a system with AIN and autorun enabled, the program named on the “open” line will be launched. Icons must be in Windows icon or bitmap format. You can’t use a GIF or JPEG. Make it square, 32×32 pixels. If you’re going to be doing a lot of the