menu

Displays a menu.

   menu [text]

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.

Example

   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

   13? DEVICE=CDROM.SYS /D:CDDRIVE1
   23? DEVICE=TROUSERS.SYS

   0?  ECHO Warning: basic stuff only!

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:
   IF "%config%"=="1" SHSUCDX /D:CDDRIVE1

See Also

menucol
menudefault
config.sys

Copyright © 2003 Rob Platt
This file forms part of The FreeDOS HTML Help Documentation, and is covered under its terms: see index.htm