delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/11/27/10:17:24

Sender: andreas AT ri DOT dasa DOT de
Message-Id: <347D8E47.DAAA1972@ri.dasa.de>
Date: Thu, 27 Nov 1997 16:14:15 +0100
From: Andreas Schulz <Andreas DOT Schulz AT ri DOT dasa DOT de>
Organization: Daimler-Benz Aerospace, Space Infrastructure
Mime-Version: 1.0
To: opendos AT delorie DOT com
Subject: Re: Multiple Configurations

Philip A Lettkeman wrote:
> I guess OpenDOS doesn't like the multiple configurations?  Does anyone
> know how to do menus from the config.sys to set up a multi in OpenDOS or
> is this even possible?

At least, it doesn't know the MS-DOS MENU... commands (so far
the bad news). But it does quite a good job just with
ECHO and SWITCH (and even better than MS-DOS with GOSUB/RETURN,
see below). I've grown a zoo of some 12 different
configurations since I started with Novell DOS...

Just a few lines from my config.sys (sorry for the German) should
give you an idea. SWITCH limits you to 9 or 10 choices per menu,
but IMHO menus with more than 5 entries are quite hard to scan
for the correct choice, even more if you set a short timeout, 
and you always have the option of creating sub-menus.

Andreas
------snip-------
TIMEOUT 5,N,1
CLS
echo            1       MS Windows Oberflaeche
echo            2       SPIELE  mit EMS
echo            3       SPIELE ohne EMS
SWITCH windows,spielmit,spielohne
rem === processing continues here after Return from called prcedures
CLS
SHELLHIGH=C:\BIN\OPENDOS\COMMAND.COM C:\BIN\OPENDOS /E:1024 /P
...
exit

:mitems
DEVICE=C:\BIN\OPENDOS\EMM386.EXE MULTI DPMI=ON FRAME=AUTO DMA=256
use=F000-F5FF
return

:spielmit
rem === you may also have submenus here with even more branches
SET ZIEL=SPIEL1
rem === the above lets you branch in autoexec like 'GOSUB %ZIEL%'
gosub mitems
gosub standard
return
-----snip--------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019