The config.sys file is a text file which loads device drivers and defines parameters for MS-DOS.
The autoexec.bat is a batch file (as denoted by the file extension), a text file which
contains a group of commands run one after the other, each command is written on a separate line.
Some of the
following are examples of commands that can be added to the autoexec.bat (any program that runs in DOS can be added
to this file):
In DOS, Windows 95 or Windows 98 systems it is possible to create a start menu where you can select which devices are to be loaded in DOS and even (as is the case with Windows 95/98) tell the system to start-up in either Windows or DOS. The config.sys and autoexec.bat files (and in Windows the msdos.sys file) must be modified to allow the selection of DOS and Windows at start-up.
To have the Windows and DOS options on start-up, the config.sys file must be modified as follows:
[COMMON]
FILES=40
Country=044,850,C:\WINDOWS\COMMAND\country.sys
[MENU]
REM *********Start Menu*************************************
MENUITEM=1, Dos
MENUITEM=2, Windows 98
REM ***********OPTIONS*************************************************
MENUCOLOR=15,0
MENUDEFAULT=2 ,4[1]
contents of the config.sys file you wish to use in configuration 1[2]
contents of the config.sys file you wish to use in configuration 2
explanation of changes made to the config.sys file
[COMMON] contains file information config.sys which is common to both configuration 1 and 2.
[MENU] contains the titles of the menu items (here DOS and Windows 98) as well as the menu settings:
Then both configurations after the markers [1] and [2]
modifying the autoexec.bat file
The autoexec.bat file must be modified as follows:
goto %config%explanation of changes made to the autoexec.bat file
:1
autoexec.bat file contents for configuration 1
goto end
:2
autoexec.bat file contents for configuration 2
win
goto end
:end
(items common to both configurations)
The changes made to the autoexec.bat file are not complicated, there are two sections in the file which the system will go to as you previously selected in the config.sys (as the system will execute the config.sys first).
If you wish to choose between DOS and Windows you must edit the msdos.sys file. Make sure you remove the read-only attribute, then add or modify the following lines:
[Options]
BootMulti=1
BootGUI=0
then add the line "win" to the end of the configuration corresponding to Windows in
the autoexec.bat, which will then load Windows if selected.
Last update on Thursday October 16, 2008 02:43:13 PM.