Supervising the Network

6-22
Creating Menus
Creating a Menu File
Creating a Menu File
Prerequisites
A workstation running DOS 3.30 or later
The Read, File Scan, Write, Create, and Erase filesystem rights to the directory
where you will create and edit the menu
A DOS text editor
Example Menu Programs
Study the following examples by creating and trying them. By entering,
executing, and debugging each example, you will gain understanding
necessary to use the scripting language effectively.
NOTE: In the following examples, indents are used to help readability; they are not required.
The examples include those script files used for the menus in Figure 6-1,
Figure 6-3, Figure 6-5, and Figure 6-6. Subsequent examples show other
ways of using the NMENU scripting language.
Example 1: Single-Window Menu
The text in the following figure is used to create the menu in Figure 6-1.
Figure 6-7 Single-Window Menu Script
Example 2: A Simple Menu
Text from the .SRC file used for the menu in Figure 6-5 is shown in the
following figure. This menu demonstrates how submenus can be used.
Menu 1,Title Bar
Item One {pause}
Exec dir
Item Two {show pause}
Exec ver
Item ^XExit
Exec EXIT