How to use BOOTCON.SYS
BOOTCON.SYS is a program that uses a boot menu in CONFIG.SYS to make configuration selections. It was released by Modular Software Systems of California, USA, and is compatible with DOS 3.0 and above. Its menu interface can be customized, and it can provide context-sensitive help information, even password protection. After finishing its task, it occupies only 176 bytes of memory.
The three steps for achieving multi-configuration CONFIG.SYS through BOOTCON:
Step 1: load the device driver, as follows (assuming your BOOTCON is in the BOOTCON directory on drive C:):
DEVICE=C:\BOOTCON\BOOTCON.SYS
Step 2: define the menu definition blocks; there can be up to 26. The first line of a block is --
REM BC=[block title name
the last line of the block is --
REM BC=]
Blocks defined by REM BC=[ and REM BC=] are executed only after a menu item is selected.
Step 3: add one line at the end of the CONFIG.SYS file --
REM BC=[END]
Below is an example CONFIG.SYS file:
===============================================
1 REM The COMMON block before this is executed first through line 9...
2 DEVICE=C:\QEMM\HOOKROM.SYS
3 DOS=HIGH
4 BREAK=ON
5 BUFFERS=35
6 FILES=25
7 LASTDRIVE=P
8 STACKS 0,0
9 SWITCHES=/K
10
11 REM Load and enable Chinese glyph information
12 DEVICE=BOOTFONT.COM
13
14 REM Then load the BOOTCON device
15 DEVICE=C:\BOOTCON\BOOTCON.SYS
16
17 REM Block A
18 REM BC=[DOS 6.0 w/QEMM386, ANSI and DOS=HIGH
19 DEVICE=C:\QEMM\QEMM386.SYS RAM ROM
20 DEVICE=C:\DOS_620\RAMDRIVE.SYS 352 /A
21 DEVICE=C:\QEMM\LOADHI.SYS /R:2 C:\DOS_620\SETVER.EXE
22 DEVICE=C:\QEMM\LOADHI.SYS /R:2 C:\DOS_620\ANSI.SYS /k
23 REM BC=]
24
25 REM Block B
26 REM BC=[DOS 6.0 w/386MAX, ANSI and DOS=HIGH
27 DEVICE=C:\386MAX\386MAX.SYS PRO=C:\386MAX\386MAX.PRO
28 DEVICE=C:\386MAX\386LOAD.SYS PRGREG=2 PROG=C:\DOS_620\SETVER.EXE
29 DEVICE=C:\386MAX\386LOAD.SYS PRGREG=2 PROG=C:\DOS_620\ANSI.SYS /k
30 REM BC=]
31
32 REM Block C
33 REM BC=[DOS 5 w/HIMEM w/DOS HIGH
34 BUFFERS=25
35 FILES=20
36 DEVICE=C:\DOS_620\HIMEM.SYS
37 DEVICE=C:\DOS_620\SETVER.EXE
38 REM BC=]
39
40 REM Block D
41 REM BC=[DOS 5 w/HIMEM w/DOS LOW
42 REM BC=[DOS=LOW]
43 DEVICE=C:\DOS_620\HIMEM.SYS
44 DEVICE=C:\DOS_620\SETVER.EXE
45 REM BC=]
46
47 REM The COMMON block after this
48 SHELL=C:\COMMAND.COM /P /E:656
49
50 REM BootCon end-of-execution marker
51 REM BC = [END]
===============================================
When the DOS system starts, it will display the following menu:
==================================
| Select A Configuration... F1=Help |
==================================
| A - DOS 6.0 w/QEMM386, ANSI and DOS=HIGH |
| B - DOS 6.0 w/386MAX, ANSI and DOS=HIGH |
| C - DOS 5 w/HIMEM w/DOS HIGH |
| D - DOS 5 w/HIMEM w/DOS LOW |
==================================
================================
| Auto Select Countdown... 9 Seconds Remain |
| |
| Press [Spacebar] to abort Auto Select, |
| or any other key to continue... |
================================
===============================================
The Chinese meaning is:
======================================
| Select a configuration... F1=Help |
======================================
| A - DOS 6.0 with QEMM386, ANSI and DOS=HIGH enabled |
| B - DOS 6.0 with 386MAX, ANSI and DOS=HIGH enabled |
| C - DOS 5 with HIMEM and DOS HIGH option enabled |
| D - DOS 5 with HIMEM and DOS LOW option enabled |
======================================
============================
| Default option countdown... 9 seconds remaining |
| |
| Press [Spacebar] to abort auto-select, |
| press any other key to continue... |
============================
===============================================
One BOOTCON menu page can display at most 15 options. If there are more, you need to add prefix characters or scroll with the cursor keys. Pressing F1 freezes the auto timer and displays the following help:
===============================================
================BOOTCON Help==============
| Move the highlighted selection bar to the boot option you |
| want to use and press [ENTER], or press the letter next to |
| the option you want to select. Press [ESCAPE] if you don't |
| want any of the options. |
| |
| Other options are: |
| F1 - Display this help window |
| F2 - Display system information |
| F3 - Program Configuration Menu |
| F9 - View the CONFIG.SYS file |
| F10 - View the AUTOEXEC.BAT file |
| ESC - Exit the program |
| |
| Press any key to continue... |
=======================================
===============================================
The Chinese meaning is:
==============BOOTCON Help=============
| Move the highlighted selection bar to the boot option you want to use, |
| then press [Enter], |
| or press the letter in front of the option you want, |
| press [ESC] to give up all options. |
| |
| |
| Other: |
| F1 - Display this help window |
| F2 - Display system information |
| F3 - Program configuration menu |
| F9 - View CONFIG.SYS file |
| F10 - View AUTOEXEC.BAT file |
| ESC - Exit the program |
| |
| Press any key to continue... |
=====================================
===============================================
After leaving help, press F3 for program configuration:
===============================================
==Program Configuration==
| |
| BOOTCON Customization |
| Advanced Options |
| Set System Password |
| Set Advanced Password |
| Lose Changes and Exit |
| Save Changes and Exit |
=========================
===============================================
The Chinese meaning is:
== Program Configuration ==
| |
| BOOTCON Customization |
| Advanced Options |
| Set system password |
| Set advanced password |
| Discard changes and exit |
| Save changes and exit |
===============
===============================================
Selecting the "BOOTCON Customization" item will display the following menu:
============BOOTCON Customization=============
| Default Menu Selection : A (A-Z, blank=last used) |
| Audio Enabled : N (y/n) |
| Phaser Count : 0 (0-9) |
| Auto Select : 15 (1-999), 0 to disable) |
| Exploding Windows : Y (y/n) |
| Remove Video Snow : Y (y/n) |
| Clear Screen on Startup : Y (y/n) |
| Maximum Vertical Menu Height : 15 (0-15 rows) |
| Maximum Horizontal Menu Width : 55 (0 or 30-74 columns) |
| |
| OK Cancel Revert Defaults |
========================================
===============================================
The Chinese meaning is:
=========== BOOTCON Customization ========
| Default menu item : A (A-Z, blank=most recent option) |
| Enable audio use : N (y/n) |
| Sync counter : 0 (0-9) |
| Auto-select : 15 (1-999), 0 disables) |
| Exploding windows : Y (y/n) |
| Remove video snow : Y (y/n) |
| Clear screen at startup : Y (y/n) |
| Maximum menu height : 15 (0-15 rows) |
| Maximum menu width : 55 (0 or 30-74 columns) |
| |
| OK Cancel Revert Default |
=============================
If you select the second block, BOOTCON.SYS will pass the environment parameter BOOTCON=B to DOS, so in a batch file you can use “IF "%bootcon%"=="B" execute/jump” for calling.
my major is english----my love is dos----my teacher is the buddha----my friends--how about U