Command: menu
MENU displays a menu while running config.sys / fdconfig.sys.
MENU is a CONFIG.SYS / FDCONFIG.SYS command.
Syntax:
menu [text]
Options:
text The text you want to be shown while running config.sys
Usage:
Use menudefault to set a time delayed default option. Lines that
begin with 1? will only be processed if the user presses 1.
Lines beginning with 23? will be loaded if the user presses either
2 or 3. Options other than 0 can only be selected if at least one
"numbers?" line actually uses them, as shown in the example below.
Using with autoexec.bat:
The environment variable CONFIG is set to the menu option value.
Therefore %CONFIG% can be used in the autoexec.bat in conjunction
with the if command. For instance:
In config.sys "1" was chosen:
In autoexec.bat:
IF "%config%"=="1" SHSUCDX /D:FDCD001
Comments:
MENU displays a menu while running config.sys / fdconfig.sys.
MENU is a command internal to kernel.sys and needs no other file
in order to work.
Examples:
IN CONFIG.SYS / FDCONFIG.SYS:
MENU Please Select Configuration:
MENU
MENU Option 0 basic stuff only
MENU Option 1 CD-ROM
MENU Option 2 TROUSERS
MENU Option 3 CD-ROM and TROUSERS
0? ECHO Warning: Only standard drivers!
13?DEVICE=uide.sys /S125 /D:FDCD001
23?DEVICE=TROUSERS.SYS
IN AUTOEXEC.BAT:
IF "%config%"=="1" SHSUCDX /D:FDCD001
IF "%config%"=="3" SHSUCDX /D:FDCD001
See also:
config.sys
fdconfig.sys
menucolor
menudefault
File:
Please read this command's lsm file also.
You will find the updated version (internet) here and
the version described in this manual page here.
The lsm file contains information about the name of the programmer,
the download site, and some other command related information.
Copyright © 2003 Robert Platt, updated 2011 by W. Spiegl.
This file is derived from the FreeDOS Spec Command HOWTO.
See the file H2Cpying for copying conditions.