Supervising the Network

6-6
Creating Menus
Getting Acquainted with NMENU
Figure 6-2 shows the .SRC file used to create the menu in Figure 6-1. This
file shows how these three elements are used. Details about these elements
and their options are covered later in the chapter.
Figure 6-2 Primary Elements of a Menu
Element 1: MENU
MENU specifies a window within the menu file. It includes a menu number and
a menu name. The menu name is the title bar for the menu.
Element 2: ITEM
ITEM includes the text the user will see. It is given an indicator letter by default,
or you can determine the character to precede it. Each option to be displayed in
the window must be preceded by the word ITEM.
Some options are available for the ITEM line; these options are discussed in
“ITEM” in this chapter.
Element 3: EXEC
EXEC is the primary command for the third element. In the menu file shown in
Figure 6-2, EXEC issues three separate commands: a directory listing, a display
of the current version of DOS running, and a command to exit the menu.
Combining the Elements
Figure 6-3 illustrates a menu with 10 windows, created by including 10
MENU commands in the same file. Each window is automatically sized and
cascaded across the screen.
Menu 1,Title Bar
Item One {pause}
Exec dir
Item Two {show pause}
Exec ver
Item ^XExit
Exec EXIT