Creating menus

Setting up the user environment

If you are storing users' temporary files in a network directory, place the following commands in the login script:

   SET S_FILEDIR=
   SET S_FILE=
For example, if you have created a subdirectory called TEMP under a MENUS directory, you would type
   SET S_FILEDIR="Z:\\MENUS\\TEMP\\"
   SET S_FILE="%STATION"
These commands point to the directory where temporary files are stored and create unique files in the temporary directory for each workstation ID number. The trailing backslash on the S_FILEDIR path is required.


NOTE: If you choose not to use the %STATION identifier variable, you must manually create a file with a maximum length of seven characters. The NMENU program automatically prepends the # symbol to the beginning of the S_FILE filename.

If the user will be using a menu with the logout option, set the S_FILEDIR environment variable to a path on the user's local drive. Set the S_FILE to ``%STATION''.

A copy of the MENU-X.BAT file needs to be in the SYS:LOGIN directory if the NMENU LOGOUT option is going to be used.

EXEC LOGOUT gives the message ``Batch file not found'' unless the temporary directory is on a local drive and MENU_X.BAT is in the LOGIN directory.

Starting NMENU from a login script

If you want the menu to execute from within a login script, add the EXIT login script command. For example, to execute the ACCOUNT menu from a user's login script, add the following line to the login script:

   EXIT "NMENU ACCOUNT"

© 1999 The Santa Cruz Operation, Inc. All rights reserved.
UnixWare 7 Release 7.1.1 - 5 November 1999