Dos MenuMultiple Boot Configuration MenusFull screen

      A "Vanilla" boot is booting your computer from a floppy disk with only the drivers needed for the game you want to run. Beginning with Microsoft DOS 6.0 you have the ability to set up a "Multiple Boot" configuration file. With this you can have up to 9 different sets of CONFIG.SYS and AUTOEXEC.BAT files combined into the two files and you can select from a menu when the computer starts. This also exists in the Windows 95 system.

To create a multiple boot system you need the following in the CONFIG.SYS file:

[MENU]
MENUCOLOR=0,3
MENUITEM=BOOT1, THE FIRST BOOT CONFIGURATION WINDOWS
MENUITEM=BOOT2, SECOND BOOT CONFIGURATION DOS PROMPT
MENUDEFAULT=BOOT1,25
[BOOT1]

[BOOT2]
DEVICE=C:\WINDOWS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\WINDOWS\EMM386.EXE NOEMS
DOS=HIGH,UMB
FILESHIGH=40
BUFFERSHIGH=40
STACKS=9,256
DEVICEHIGH=C:\CDROM\ROMDRVR.SYS /D::IDECD001
SHELL=C:\COMMAND.COM /P /E:1024

[COMMON]

 

[MENU] This turns the menu system on.

MENUCOLOR= This sets the screen foreground and background colors for the menu. The first number sets the forground color and the number after the comma sets the background color.

MENUITEM= These are the menu choices. You can have up to nine selections. The word between the = and the , (equal sign and comma) is the config set name, Each choice must have a different name up to 8 characters. this name is used by the autoexec.bat and is displayed by the set command as config= . This can be used by other batch files to control programs under the different configurations.

After the comma is the title for each configuration choice which will be displayed at boot.

MENUDEFAULT=BOOT1,25 selects which choice will be automatically run if a selection is not made. This is set to run choice one (boot1) after 25 seconds.

[BOOT1] The config set name is entered between the brackets in the config.sys. I showed no commands under the first heading as windows installs none by default. The second heading has files and commands needed for DOS operation with a CDROM loaded.

[COMMON] This heading is optional. Drivers or commands that are used in all of the choices can be entered under this heading rather than duplicated in each section. It can be at the beginning or end of the group of configurations. If it isn't there programs may add it when they are installed.

The Multiple Boot Configuration AUTOEXEC.BAT

ECHO OFF
GOTO %CONFIG%

:BOOT1
GOTO END

:BOOT2
LH C:\WINDOWS\MSCDEX.EXE /D:IDECD001 /V /M:15 /L:Z
PROMPT= (DOS) $P$G
WINPRMPT=(WIN) $P$G
LH C:\MOUSE\MOUSE.COM
GOTO END

:END

 

The GOTO %CONFIG% looks for the configuration set name for the boot selection among the headings in this file. If if finds a match it run that group of commands.

IMPORTANT NOTE:
Each group must end with "GOTO END". And there must be an end marker at the very end. If you don't have these the file will process every command listed after the boot choice you made.

 

MULTIPLE BOOT MENU COLORS
Color Values Valid color values are from 0 to 15, as follows:
Color Values Note: On some displays, colors 8 through 15 blink.
0 Black
1 Blue
2 Green
3 Cyan
4 Red
5 Magenta
6 Brown
7 White
8 Gray
9 Bright blue
10 Bright green
11 Bright cyan
12 Bright red
13 Bright magenta
14 Yellow
15 Bright white

See:
MS-DOS v6.22 Help: Commands for Defining Multiple Configurations From Vernon Frazee.

PoliTalk Technical Menu
E-Mail

Comment to PoliTalk
And That's My
My Two Cents

Updated June 7, 2003
1