Supervising the Network

6-23
Creating Menus
Creating a Menu File
Figure 6-8 A Simple Menu Script
Example 3: A More Complex Menu
The menu in Figure 6-6 was created from the text file in the following figure.
This menu incorporates the GETR command with simple DOS functionality.
Figure 6-9 A More Complex Menu Script
As this menu script shows, by combining regular DOS commands with
special NMENU conventions you have a simple means of organizing data.
You don’t need a database program just to catalog some information.
Menu 5,Available Applications
Item Word Processors { }
Show 10
Item SpreadSheets { }
Show 15
Item ^XExit Menu { }
Exec EXIT
Menu 10,Available Word Processors
Item WordPerfect 5.1
Exec wp51
Item WordPerfect 6
Exec wp6
Item MSWord
Exec Word
Menu 15,Available SpreadSheets
Item Quattro Pro
Exec Q
Item Lotus 123
Exec 123
menu 22,Data Entry
item ^AAdd Entry to Catalogue {show}
getr Enter Tile { } 40,, {, }
getr Enter Author’s Name {} 40,, {, }
getr Category: 1=Apps, 2=Prod, 3=Self {} 1,, {,}
exec echo >>datalist.cat
item ^View Catalogue {pause}
exec sort <datalist.cat | more
item ^Instructions {pause}
exec type instruct.cat | more
item ^XExit the menu
exec EXIT