Reply 160 of 1657, by urbanus
SBEMU + Windows 98SE + Boot menu
Example of how to setup a boot menu for Windows 9x so that the SBEMU driver ++ is only loaded when booting DOS.
Windows will fail to load if jemmex is loaded for instance.
Tested on Windows 98SE, but I believe it will also work on 95 and 98.
The following code assumes the files in SBEMU.zip have been extracted to the folder: C:\SBEMU\
AUTOEXEC.BAT
@ECHO OFF
GOTO %CONFIG%
:WINDOWS
rem Commands here are only run with Windows
GOTO END
:DOS
C:\SBEMU\jload C:\SBEMU\qpiemu.dll
C:\SBEMU\hdpmi32i -r -x
C:\SBEMU\sbemu
rem Commands here are only run with DOS
:END
rem Commands here are run with both DOS and Windows
rem Keep C:\WINDOWS\WIN.COM at the end if the file
if %config%==WINDOWS C:\WINDOWS\WIN.COM
CONFIG.SYS
[MENU]
menuitem=DOS, Start DOS (SBEMU)
menuitem=WINDOWS, Start Windows
menudefault=WINDOWS, 10
[DOS]
DEVICE=C:\SBEMU\jemmex.exe
[WINDOWS]
MSDOS.SYS
Change the BootGUI value from 1 to 0.
...
BootGUI=0
...
The MSDOS.SYS might not be editable or visible, to fix this use the following command:
attrib -r -s -h MSDOS.SYS