Home > Commands A-M > Configuration M

MENUDEFAULT


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Specifies the default menu item on the startup menu and sets a timeout value if desired. You can use this command only within a menu block in your CONFIG.SYS file. If you do not use this command, the operating system sets the default to item 1.

The startup menu is a list of choices that appears when you start your computer. You define a startup menu by using special CONFIG.SYS commands. Each item on the menu corresponds to a set of CONFIG.SYS commands called a "configuration block." A startup menu makes it possible to start your computer with a variety of configurations. For more information about defining multiple configurations, see the chapter "Configuring Your System" in the MS-DOS User's Guide.


Syntax

MENUDEFAULT=blockname[,timeout]


Parameters
blockname (v6.0)
Specifies the default menu item by its associated configuration block. The block must be defined elsewhere in the CONFIG.SYS file. When the operating system displays the startup menu, the default menu item is highlighted and its number appears after the "Enter a choice" prompt.
timeout (v6.0)
Determines how many seconds the operating system waits before starting the computer with the default configuration. If you don't specify a timeout value, the operating system does not continue until the ENTER key is pressed. You can specify a timeout value from 0 to 90 seconds. A timeout of 0 forces automatic selection of the default, effectively bypassing the menu display.

Switches

none.


Related

The MENUDEFAULT command is one of six special CONFIG.SYS commands for defining startup menus and multiple configurations. The other commands are as follows:

For an overview of the procedure for defining multiple configurations, see the topic "Commands for Defining Multiple Configurations".


Notes

Be sure to specify different values for x and y, or the text will not be readable.

Color Values:

Note: On some displays, colors 8 through 15 blink.


Examples

This menu block defines three menu items, sets the default item to "full_config," and sets the timeout to 30 seconds:

    [menu]
    MENUITEM=base_config,Base configuration only
    MENUITEM=full_config,Normal configuration
    MENUITEM=network,Normal configuration with network
    MENUDEFAULT=full_config,30

When the operating system starts and reads this menu block, it displays the following menu:

    MS-DOS Startup Menu
    ===================

       1. Base configuration only
       2. Normal configuration
       3. Normal configuration with network

    Enter a choice: 2                       Time remaining: 30

After displaying this menu, the operating system waits 30 seconds; if no other item is selected, the operating system then starts the computer using the commands in the [full_config] configuration block.


Errorlevels

none.


Availability
External
DOS
v6.0 v6.10 v6.2 v6.21 v6.22 v6.23 v7.00 v7.0R1 v7.10 v8.00
Windows
none
Windows NT
none