The following list describes the prerequisites for creating a menu file:
The examples include those script files used for the menus presented in ``Getting acquainted with NMENU''. Subsequent examples show other ways of using the NMENU scripting language.
Menu 1, Title Bar
Item One {pause}
Exec dir
Item Two {show pause}
Exec ver
Item ^XExit
Exec EXIT
Text from the .SRC file used for the menu in ``Example of a simple menu'' is shown in the following display. This menu demonstrates how submenus can be used.
Menu 5,Available Applications
Item Word Processors { }
Show 10
Item SpreadSheets { }
Show 15
Item ^XExit
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
The menu in ``Example of a more complex menu'' was created from the following text file. This menu incorporates the GETR command with simple DOS functionality.
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
As this menu script shows, by combining regular DOS commands with
special NMENU conventions you have a simple means of
organizing data. You do not need a database program just to catalog
some information.
Users can accomplish more work when access to DOS and NetWare functionality is combined in the same menu.
Menu 01,User Options
+ Item Utilities
++ Show 10
+ Item DOS Prompt
++ Exec DOS
+ Item Log out of the network
++ Exec Logout
Menu 10,Utilities
+ Item ^1NetWare Menu Utilities
++ Show 12
+ Item ^2NetWare Command Line Utilities
++ Show 14
Menu 12,NetWare Menu Utilities
+ Item NETADMIN {Batch}
++ Exec netadmin
+ Item FILER {Batch}
++ Exec FILER {Batch}
+ Item NETUSER {Batch}
++ Exec netuser
Menu 14,NetWare Command Line Utilities
+ Item NLIST {Show}
++ Geto Class & Option: { } 25,user /a. { }
++ Exec nlist
+ Item COPY Files {pause}
++ Getp Enter Source { } 25,, { }
++ Getp Enter Destination { } 25,, { }
++ Exec ncopy %1 %2
++ Exec dir %2 /w
+ Item Display a MAP listing {show pause}
++ Exec map