VOGONS


Adding Text to Config.sys for Menus

Topic actions

First post, by GabrielKnight123

User metadata
Rank Oldbie
Rank
Oldbie

Hi all, im trying to add a line of viewable text to my config.sys line for my boot menus so I can see which menu im using here is an example:

[MENU]
submenu=EMS, Start PC with EMS Memory
submenu=NOEMS, Start PC Without EMS Memory
submenu=CONVENT, Start PC With Conventional Memory

[EMS]
echo EMS Memory Selected
submenu=1CTMOUSE, Start PC with Cute Mouse
submenu=1MOUSE, Start PC With Mouse.com
submenu=1BMOUSE, Start PC With BBBMouse.com

Etc

I have tried "echo EMS Memory Selected" but I get an error so echo isnt right.

Reply 1 of 20, by dr_st

User metadata
Rank l33t
Rank
l33t

As you were told before, you cannot really run any commands from Config.sys. In Autoexec.bat, you have access to the %CONFIG% variable which is set depending on your Config.sys selection, and you can run echo %CONFIG%.

Seems like you're struggling for quite some time with pointless things; 99% of the time people think they need submenus at all in their Config.sys, they are wrong. Unfortunately, everyone just follows Phil's guide without thinking or trying to understand the principles behind it.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 2 of 20, by GabrielKnight123

User metadata
Rank Oldbie
Rank
Oldbie

Sorry to disappoint but my menus are quite good and working well I just thought it would be nice to know where the user would be from all the different memory and mouse options as I have an option to "return to the previous menu", yes your right I was told about config.sys not being a command running program but echo is a command and I hoped there was a way... somewhere I read to try "SET A=your text" but I had no luck it had errors, I'm not a programmer so I don't understand everything in autoexec.bat that's a good reason to be here at Vogons. I'm not sure about what you said with "echo %CONFIG%" but I'm about to play with it.

Why do you say submenus are pointless? I looked at examples and made my own to suit my needs do you have a single boot setup using known drivers for mouse and an advanced setup for memory so dos games and programs work all the time and every time, that's why I have menus so I can get game X to work with one mouse and memory setup when game Y doesn't.

Reply 3 of 20, by dr_st

User metadata
Rank l33t
Rank
l33t
GabrielKnight123 wrote:

Why do you say submenus are pointless?

Because I have lots of experience using DOS.

GabrielKnight123 wrote:

do you have a single boot setup using known drivers for mouse and an advanced setup for memory so dos games and programs work all the time and every time

Yes, I do.

GabrielKnight123 wrote:

that's why I have menus so I can get game X to work with one mouse and memory setup when game Y doesn't.

That never happens. You are working hard to solve a problem that isn't there.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 4 of 20, by bjwil1991

User metadata
Rank l33t
Rank
l33t

Here's what I found:

The following CONFIG.SYS file defines a main startup menu and one submenu:

[menu]
menuitem base_config,Base configuration only
menuitem full_config,Normal configuration
submenu netmenu, Normal configuration with network

[netmenu]
menuitem lanman, Start Microsoft LAN Manager
menuitem vines, Start Banyan VINES

[base_config]
dos=high
device=c:\dos\himem

[full_config]
include=base_config
dos=umb
device=c:\dos\emm386 ram
device=c:\dos\ramdrive.sys 512

[lanman]
include=full_config
rem Commands for Microsoft LAN Manager would go here.

[vines]
include=full_config
rem Commands for Banyan VINES would go here

Source: https://www.vfrazee.com/ms-dos/6.22/help/submenu.htm

Also, add the goto %CONFIG% in the autoexec.bat file.

Discord: https://discord.gg/U5dJw7x
Systems from the Compaq Portable 1 to Ryzen 5 2600X
Twitch: https://twitch.tv/retropcuser

Reply 5 of 20, by GabrielKnight123

User metadata
Rank Oldbie
Rank
Oldbie

Ok thanks bjwil1991 but I already have a grasp on menus and its not exactly the menus I need help on its just the "title" at the top of the menu to show what has been selected, I ended up just doing this:

[MENU]
submenu=EMS, Start PC With EMS Memory
submenu=NOEMS, Start PC Without EMS Memory

[EMS]
submenu=EMS, (**** EMS Memory Is Selected ****)
submenu=1CTMOUSE, Start PC With Cute Mouse
submenu=1Mouse, Start PC With Mouse.com

[1CTMOUSE]
submenu=1CTMOUSE, (**** EMS & CT Mouse ****)
submenu=1LY, Start Game Launcher
Etc.....

the only problem is that the title is number 1 on the menus and can be selected but its no problem as selecting it (pressing enter) does nothing.

that's why I have menus so I can get game X to work with one mouse and memory setup when game Y doesn't.
That never happens. You are working hard to solve a problem that isn't there.

I know that I can probably remove all my mouse options and just use CTMouse but I like to have the option of other mouse drivers if CTMouse fails which hasnt happened yet but a menu for this isn't that bad and isn't much of a pain by going through a couple of key presses, can you tell me your memory setup or one that can handle all dos games that handle EMS, doesnt load himem.sys and just loads conventional?

Reply 6 of 20, by bjwil1991

User metadata
Rank l33t
Rank
l33t

When I get home, I'm going to test it on my HP Pavilion N3350 with Windows 98SE installed and see how it goes and provide feedback.

Discord: https://discord.gg/U5dJw7x
Systems from the Compaq Portable 1 to Ryzen 5 2600X
Twitch: https://twitch.tv/retropcuser

Reply 7 of 20, by dr_st

User metadata
Rank l33t
Rank
l33t
GabrielKnight123 wrote:

can you tell me your memory setup or one that can handle all dos games that handle EMS, doesnt load himem.sys and just loads conventional?

My exact setup files don't matter. They are tailored to my sound devices. But here they are as a template:
Re: Autoexec.bat & Config.sys Help

You should just always have DOS=HIGH,UMB, always load HIMEM.SYS, always load EMM386.EXE RAM I=B000-B7FF AUTO (or I=B400-B7FF, if you have a rare game that conflicts with B000-B7FF), always load CD-ROM (VIDE-CDD.SYS in CONFIG.SYS and MSCDEX.EXE in AUTOEXEC.BAT) and always load mouse driver (CTMOUSE unless it conflicts with your chipset). The rest is up to the things you want (DOSKey? SmartDrive?).

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 8 of 20, by GabrielKnight123

User metadata
Rank Oldbie
Rank
Oldbie

dr_st thanks for your info I have some of what you have besides the obvious sound card settings but im using Dos 6.21 if you feel like a bit of a read here is my Config and Autoexec:

Config.sys:

SWITCHES= /F

[MENU]
submenu=EMS, Start PC With EMS Memory.
submenu=NOEMS, Start PC Without EMS Memory.
submenu=CONVENT, Start PC With Conventional Memory Only (No EMS No HIMEM).

[EMS]
submenu=EMS, (**** EMS Memory Is Selected ****)
submenu=1CTMOUSE, Start PC With Cute Mouse.exe
submenu=1MOUSE, Start PC With Mouse.com
submenu=1BMOUSE, Start PC With BBBMouse.com
submenu=1NOMOUSE, Start PC Without a Mouse
submenu=MENU, Return to Previous Menu

[1CTMOUSE]
submenu=1CTMOUSE, (**** EMS & CT Mouse ****)
menuitem=1LY, Start Games Launcher
menuitem=1LN, Dont Start Games Launcher
submenu=EMS, Return to Previous Menu

[1LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[1LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[1MOUSE]
submenu=1MOUSE, (**** EMS & Mouse ****)
menuitem=2LY, Start Games Launcher
menuitem=2LN, Dont Start Games Launcher
submenu=EMS, Return to Previous Menu

[2LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[2LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
Show last 247 lines
FILES=60
BUFFERS=40

[1BMOUSE]
submenu=1BMOUSE, (**** EMS & BBB Mouse ****)
menuitem=3LY, Start Games Launcher
menuitem=3LN, Dont Start Games Launcher
submenu=EMS, Return to Previous Menu

[3LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[3LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[1NOMOUSE]
submenu=1NOMOUSE, (**** EMS & No Mouse ****)
menuitem=4LY, Start Games Launcher
menuitem=4LN, Dont Start Games Launcher
submenu=EMS, Return to Previous Menu

[4LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[4LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE RAM AUTO HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[NOEMS]
submenu=NOEMS, (**** No EMS Memory Is Selected ****)
submenu=2CTMOUSE, Start PC With Cute Mouse.exe
submenu=2MOUSE, Start PC With Mouse.com
submenu=2BMOUSE, Start PC With BBBMouse.com
submenu=2NOMOUSE, Start PC Without a Mouse
submenu=MENU, Return to Previous Menu

[2CTMOUSE]
submenu=2CTMOUSE, (**** NO EMS & CT Mouse ****)
menuitem=5LY, Start Games Launcher
menuitem=5LN, Dont Start Games Launcher
submenu=NOEMS, Return to Previous Menu

[5LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[5LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[2MOUSE]
submenu=2MOUSE, (**** No EMS & Mouse ****)
menuitem=6LY, Start Games Launcher
menuitem=6LN, Dont Start Games Launcher
submenu=NOEMS, Return to Previous Menu

[6LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[6LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[2BMOUSE]
submenu=2BMOUSE, (**** No EMS & BBB Mouse ****)
menuitem=7LY, Start Games Launcher
menuitem=7LN, Dont Start Games Launcher
submenu=NOEMS, Return to Previous Menu

[7LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[7LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[2NOMOUSE]
submenu=2NOMOUSE, (**** No EMS & No Mouse ****)
menuitem=8LY, Start Games Launcher
menuitem=8LN, Dont Start Games Launcher
submenu=NOEMS, Return to Previous Menu

[8LY]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[8LN]
DEVICE=C:\DOS\HIMEM.SYS /TESTMEM:OFF
DEVICE=C:\DOS\EMM386.EXE NOEMS HIGHSCAN I=B000-B7FF
DOS=HIGH,UMB
DEVICEHIGH=C:\DOS\SETVER.EXE
DEVICEHIGH=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[CONVENT]
submenu=CONVENT, (**** Conventional Memory Only Is Selected ****)
submenu=3CTMOUSE, Start PC With Cute Mouse.exe
submenu=3MOUSE, Start PC With Mouse.com
submenu=3BMOUSE, Start PC With BBBMouse.com
submenu=3NOMOUSE, Start PC Without a Mouse
submenu=MENU, Return to Previous Menu

[3CTMOUSE]
submenu=3CTMOUSE, (**** Conventional & CT Mouse ****)
menuitem=9LY, Start Games Launcher
menuitem=9LN, Dont Start Games Launcher
submenu=CONVENT, Return to Previous Menu

[9LY]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[9LN]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[3MOUSE]
submenu=3MOUSE, (**** Conventional & Mouse ****)
menuitem=10LY, Start Games Launcher
menuitem=10LN, Dont Start Games Launcher
submenu=CONVENT, Return to Previous Menu

[10LY]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[10LN]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[3BMOUSE]
submenu=3BMOUSE, (**** Conventional & BBB Mouse ****)
menuitem=11LY, Start Games Launcher
menuitem=11LN, Dont Start Games Launcher
submenu=CONVENT, Return to Previous Menu

[11LY]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[11LN]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[3NOMOUSE]
submenu=3NOMOUSE, (**** Conventional & No Mouse ****)
menuitem=12LY, Start Games Launcher
menuitem=12LN, Dont Start Games Launcher
submenu=CONVENT, Return to Previous Menu

[12LY]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[12LN]
DOS=LOW
DEVICE=C:\DOS\SETVER.EXE
DEVICE=C:\CDROM\OAKCDROM.SYS /D:OPTICAL
FILES=60
BUFFERS=40

[COMMON]
LASTDRIVE=H
STACKS=9,256

Autoexec.bat:

@ECHO OFF

GOTO %CONFIG%

:1LY
@ECHO ON
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
LH C:\MOUSE\CTMOUSE.EXE
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:1LN
@ECHO ON
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
LH C:\MOUSE\CTMOUSE.EXE
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:2LY
@ECHO ON
LH C:\MOUSE\MOUSE.COM
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:2LN
@ECHO ON
LH C:\MOUSE\MOUSE.COM
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
Show last 322 lines
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:3LY
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\MOUSE\BBBMOUSE.COM
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat

:3LN
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\MOUSE\BBBMOUSE.COM
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:4LY
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat

:4LN
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
REM LH C:\DOS\SMARTDRV.EXE /X
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:5LY
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\MOUSE\CTMOUSE.EXE
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:5LN
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\MOUSE\CTMOUSE.EXE
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:6LY
@ECHO ON
LH C:\MOUSE\MOUSE.COM
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:6LN
@ECHO ON
LH C:\MOUSE\MOUSE.COM
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:7LY
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\MOUSE\BBBMOUSE.COM
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:7LN
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
LH C:\MOUSE\BBBMOUSE.COM
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:8LY
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:8LN
@ECHO ON
LH C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:9LY
@ECHO ON
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
C:\MOUSE\CTMOUSE.EXE
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:9LN
@ECHO ON
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
C:\MOUSE\CTMOUSE.EXE
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:10LY
@ECHO ON
C:\MOUSE\MOUSE.COM
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:10LN
@ECHO ON
C:\MOUSE\MOUSE.COM
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:11LY
@ECHO ON
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
C:\MOUSE\BBBMOUSE.COM
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:11LN
@ECHO ON
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
C:\MOUSE\BBBMOUSE.COM
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:12LY
@ECHO ON
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
pause
c:
cd launcher
launch.bat
goto end

:12LN
@ECHO ON
C:\DOS\MSCDEX.EXE /D:OPTICAL /L:G
C:\ESS1869\ESSCFG.EXE /A:220 /I:5 /D:1 /E:3 /B:330 /J:E
C:\ESS1869\ESSVOL.EXE /V:6 /L:4 /W:4 /M:0 /C:4 /S:4 /A:0 /P:4
@ECHO OFF
REM LH C:\DOS\SMARTDRV.EXE /X
REM ESSVOL 0..15: V=master L=line W=wave M=mic C=CD S=synth A=auxB P=pcspkr
PROMPT $p$g
PATH=C:\DOS;C:\MOUSE;C:\CDROM;C:\WINDOWS
SET TEMP=C:\DOS
goto end

:END

I know its long and there is probably a better way to make it shortened but this is what I know for now, as you can see I have options to use EMS and to not use EMS and to just have conventional and before the dos games launcher option is used I put a pause command so you can see if there are any errors in the drivers and sound card setup just in case

Reply 10 of 20, by gdjacobs

User metadata
Rank l33t++
Rank
l33t++

Mouse driver changing can usually be done in userspace rather than by custom config. By CHOICE or at the command line, for example.

Having said that, I've only found one title so far that had issues with CTMOUSE (hello Allegiance!).

All hail the Great Capacitor Brand Finder

Reply 11 of 20, by bjwil1991

User metadata
Rank l33t
Rank
l33t

I almost mentioned that. I have the choice command set for MS-DOS games, as well as the different sound card options (PC Speaker, Tandy 3-Voice, Adlib/Sound Blaster + SFX, MT-32, and GM/XG). It's worth a try.

Discord: https://discord.gg/U5dJw7x
Systems from the Compaq Portable 1 to Ryzen 5 2600X
Twitch: https://twitch.tv/retropcuser

Reply 13 of 20, by dr_st

User metadata
Rank l33t
Rank
l33t

It takes up memory. If you are running on a fast system with a fast drive that has its own cache, (nothing period-correct, obviously), Smartdrive may not provide any tangible benefits.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 14 of 20, by jxalex

User metadata
Rank Member
Rank
Member

with smartdrive it is the thing that it is not smart at all for long copys. The norton cache works better for that as it can be unloaded. Also smartdrv cant be unloaded otherwise than rebooting.

in fact I would recommend even the MSCDEX not include in the autoexec bat but to have as some batch file which to call out becouse you cant get it out from memory later (or can? 😉 ). So you have option to have more conventional memory but still choice to add CD drive later.

There are some things which is recommended still to have as option menu in config sys -- the items which you cant get rid off after
the system is booted but sometimes you need or not them! Example:

-------------------------------------------------------
[COMMON]
rem DEVICE=C:\CTCM\CTCM.EXE
BREAK=OFF
DOS=HIGH,UMB

[MENU]
MENUITEM=XMSMAX, XMS MAX
MENUITEM=XMS, XMS
MENUITEM=XMSCD, XMS + CD, IFSHLP
MENUITEM=XMSSCSI, XMS + ASPIDISK
MENUITEM=EMS, EMSmaxupper + CD
MENUITEM=EMS2, EMS + CD
MENUITEM=EMSCD, EMSmaxupper + CD + IFSHLP + diskr (NOVELL, DISKR)
MENUDEFAULT=xmscd,5

------------------------------------------------ with total length 1500 bytes.
No additional menus after that. These are the only choices.
the rest below all that what follows is selfexplanatory, but I skip that. 😉 I have used that this way last 20 years.

The menus I use very intensively becouse some things need XMS and need as much as memory possible and no need for EMS, other things require EMS on occassion. Also NU6 utilities some things do not work always and just everything does not fill up in memory nor arent needed.

It is made in mind to use NFS shares in linux, on occassion trackers, demoscene things, EPROM programming, win3.x and some certain own sound
programming and utilities.

The rem before CTCM is just becouse not in every machine I have the SB, and I have the habit to move 4 different soundcards between machines.

Also I use the menus in Volkov Commander to switch on/off cache and shortcut calls for utilities.
quite many batch files are in use to generate playlists for inertia player and gravis ultrasound midi player and as shortcut access or fast move between different directories.

Note the short SET PATH variable here.
------------------------------------------autoexec.bat-----------------------------
rem SET CTCM=C:\CTCM
rem C:\CTCM\CTCM
@ECHO Off
SET PATH=C:\GUS;C:\DOS;D:\TASM5\BIN;D:\BIN;D:\SR8;c:\net;c:\dosnet;c:\win
PROMPT $P$G
SET TEMP=C:\TMP
SET ETCDIR=C:\DOSNET
SET WATTCP.CFG=C:\dosnet
cookie
ks 0 0
lock c: <y
---------------------------------------autoexec.bat ends------------------------

the trickery is here to have the SET PATH variable as short as possible is to have as many .BAT files possible in DOS directory which make the call to proper place which I have ca 50pcs. ACtually to have a short path file has had a good speedup to me in the past while using those 20ms HDDs with shorter program execution time.

Now look this:

S.BAT
-------------------------------------------------------------------------------------
@if %1==pr c:
@if %1==m3u dir /s/b /ON *.mp3 >>d:play.m3u
@if %1==dnleq c:\prog\dnleq %2 %3 %4 %5 %6 %7
@if %1==s cd k:\sound%2
@if %1==pr cd c:\prog%2
@if %1==ip c:\prog\iplay %2 %3 %4
@if %1==cp c:\prog\cp\cp %2 %3 %4
@if %1==st c:\prog\st321\st3 %2 %3 %4
@if %1==ft c:\prog\ft209\ft2 %2 %3 %4
@if %1==ft2 c:\prog\ft208\ft2 %2 %3 %4
@if %1==pm c:\gus\playmidi -v127 %2
@if %1==dmf c:\prog\xplay127 %2
@if %1==sct c:\prog\sclub -x -t -i %2
@if %1==scg c:\prog\sclub -x %2
@if %1==v c:\prog\velvet\vplay.exe %2
@if %1==sc c:\prog\sclub
@if %1==hsc c:\prog\playhsc %2
@if %1==al goto 3
@if %1==mp3tag c:\prog\mp3tag %2 %3 %4 %5
goto 4
:3
dir /B/S/L %2 >>c:\prog\play.lst
:4
-----------------------------------------------------------

and this:
NETT.BAT
----------------------------------------------------------
if %1==u goto 2
c:
cd \net
lh e100bpkt 0x62
goto 1
:2
c:
cd \net
e100bpkt -u
:1
---------------------------------------------------------

Last edited by jxalex on 2018-10-30, 22:44. Edited 1 time in total.

Current project: DOS ISA soundcard with 24bit/96Khz digital I/O, SB16 compatible switchable.
newly made SB-clone ...with 24bit and AES/EBU... join in development!

Reply 15 of 20, by jxalex

User metadata
Rank Member
Rank
Member
GabrielKnight123 wrote:

Config.sys:

I know its long and there is probably a better way to make it shortened but this is what I know for now, as you can see I have options to use EMS and to not use EMS and to just have conventional and before the dos games launcher option is used I put a pause command so you can see if there are any errors in the drivers and sound card setup just in case

out of curiosity. Why mouse has to be named in config sys, while it is never launched in that file? 😉 Why not to have mouse as an separate .BAT file which you launch just IF needed at the end of everything and then you can also unload mouse?

Just have in config sys the EMM386 and CD drive combinations to switch on and off.
Many things does not even have to be in autoexec.bat.
2 batch files: ESS.BAT to initialize soundcard, ESSCFG and ESSVOL does not have to be in autoexec.
They can be also separate batch.

Current project: DOS ISA soundcard with 24bit/96Khz digital I/O, SB16 compatible switchable.
newly made SB-clone ...with 24bit and AES/EBU... join in development!

Reply 16 of 20, by Cbb

User metadata
Rank Newbie
Rank
Newbie

The most comfortable thing is that the last chosen menu item is "memorised" and selected by default on next restart.
I made it by "compiling" i.e. copying several needed parts of config.sys into one file every startup. so you have several HEADER files with MENU and different MENUDEFAULT strings and common part containing the all rest.
That gives some automacy to the boot process and you don't need to keep in mind which config you were booted last time if something went wrong and system had hang up.
Also I've put sound card(s) init code into separate .bat files and just uncomment needed calls to them in autoexec.bat when needed.
The question to me is how to skip loading ifshlp.sys when booting to dos prompt. the only way to do thisw at the moment is to delete it physically but that make Windows BSOD on loading (fi I need to load Windows).

Reply 17 of 20, by dr_st

User metadata
Rank l33t
Rank
l33t
Cbb wrote:

The question to me is how to skip loading ifshlp.sys when booting to dos prompt.

Why would you want to do that anyways? In any case, DOS=NOAUTO should help.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 18 of 20, by Cbb

User metadata
Rank Newbie
Rank
Newbie

Thanks, now I know it 😀
I tuned autoexec to assemble sound init .bat file during boot from batch files in corresponding directory, you just need to put to or delete needed for current hardware config files in that directory.
the only thing I cannot manage to be made on-the-fly is to load current corresponding device drivers in config.sys, but I think it still can be made in autoexec by using device.com utility.
Will public the listings little bit later. They need to be finally polished ))))