Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: Autorun.inf
At a minimum, an Autorun.inf file contains three lines of text and identifies the startup application and the icon, as shown in the following example:
[autorun] open=filename.exe icon=filename.icoThe [autorun] section identifies the lines that follow it as AutoPlay commands. An [autorun] section is required in every Autorun.inf file. The open command specifies the path and file name of the startup application, and the icon command specifies the file that contains the icon information.
The Autorun.inf file also can contain architecture-specific sections for Windows NT 4.0 running on RISC processors. For each type of processor architecture, add a section to the Autorun.inf file that contains the file name of the startup application you want to run for that architecture. For x86 architectures, use the standard [autorun] line. Use [autorun.mips] to run an application on MIPS architecture, [autorun.alpha] for applications on the Alpha architecture, and [autorun.ppc] for the PowerPC architecture. The following example shows how to create an Autorun.inf file that runs different startup applications depending on the computer architecture:
[autorun] open=filename.exe icon=filename.ico [autorun.mips] open=filenam2.exe icon=filename.ico [autorun.alpha] open=filenam3.exe icon=filename.ico [autorun.ppc] open=filenam4.exe icon=filename.icoThe shell checks for an architecture-specific section first. If it does not find one, it uses the information in the [autorun] section. After the shell finds a section, it ignores all the other sections, so make sure each section contains all the information for that architecture.
[autorun] open = program.exe icon = program.icoWhere 'program.exe' is the name of a program in the root directory of the drive and 'progarm.ico' is either a icon file or an executable file from which an icon is to be pulled (index #0).
By default, Windows 95 is configured to recognize an AUTORUN.INF file on various media and to ignore it on others, based on the Registry key shown here. The default Data entry also shown here can be revised as desired:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
The first data byte (95 = 1001 0101) is a bit mask in which each bit set to 1 prevents a certain drive type from being recognized for AUTORUN.INF processing according to the following list:
Bit # Drive Type 0 unknown 1 "NO_ROOT_DIR" (undocumented) 2 Removable 3 Hard drive 4 remote 5 CD-ROM 6 RAM 7 reservedTo enable remote (network) drives for AUTORUN.INF processing you need to change the value from 95 (hex) to 85 (hex) (1000 0101 binary).
The TweakUI utility, if I recall correctly, has a GUI that lets you manipulate this setting, but I may be mistaken.
Keep in mind that this is coming directly from a Win95 Registry reference manual. I have only been able to do a limited amount of testing.
I have not tested with a WinNT share instead of mapped drive letter from a Netware server.
I have not tested either type of server with a WinNT client.
The only identifiable difference in behavior is that the Explorer on Win95 reconized the registry change and worked immediately. The Explorer in WinNT had to be restarted, e.g. logoff and logon again, before the registry change was recognized.
On the root of your cd-r image:
open = autorun.bat yourfoldername\homepage.htm
@start %1 %2 %3 %4 %5 %6 %7 %8 %9 @exit
Now your autorun.bat file, effectively looks like this:
@start yourfoldername\homepage.htm @exitThe BAT file executes the "START" command, which is a windows command that is identical to the Run... command on the start menu. It tells windows to run the "yourfoldername\homepage.htm" file, which causes windows to open Internet Explorer with that webpage displayed. The next command is EXIT, which just tells the console window to close. Both these commands are prefixed with a "@", so they are completely silent. Windows doesn't display a command prompt, and the only visible effect shown is windows magically opens Internet Explorer, navigating automatically to a webpage of your choosing. Tada!!
Article ID: W13206
Filename: The Autorun.inf File on a CD-ROM.txt
File Created: 2005:01:21:08:48:56
Last Updated: 2005:01:21:08:48:56