home *** CD-ROM | disk | FTP | other *** search
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- E X E C U T I V E M E N U
-
- VERSION 1.00
-
- by
-
- Leroy B. Inman
-
-
-
-
-
- TABLE OF CONTENTS
-
-
-
- INTRODUCTION 2
-
- Benefits and Advantages 2
-
- How Does ExecMenu Work 2
-
- HOW TO USE ExecMenu 3
-
- Setting up ExecMenu for the first time 3
-
- ExecMenu Menu Definition File (MDF) 4
-
- How to run ExecMenu 5
-
- Functional Characteristics 5
-
- Uses and Performance for Floppy Diskette Systems 5
-
- REFERENCE SECTION 6
-
- Example of ExecMenu Menu Definition File 6
-
- Example of AUTOEXEC.BAT 7
-
- Example of AUTO.BAT 7
-
- Example of Configuration File 7
-
- Menu Definition File Functions 7
-
- ( % ) - Title 7
-
- ( * ) - Option 8
-
- ( ? ) - Option Help 8
-
- ( ^ ) - Password 8
-
- ( + ) - Batch DOS Commands 8
-
- ( . ) - Comments 8
-
-
-
-
-
-
-
-
-
- i
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- INTRODUCTION
-
- ExecMenu is the solution to the problem of learning all the DOS
- commands required to access many different application programs. No longer
- will the user be required to type in a list of commands to find the program
- they are looking for. With a single press of a key, almost any application
- program can be made available.
-
- ExecMenu provides the user with an easy to read and understandable
- menu of options to choose from. It automatically executes the commands
- required to bring the selected menu option to the user's fingertips.
- ExecMenu provides the user with the capability to set up their own
- customized menu systems. The user can define the menu titles, the menu
- options displayed, and DOS commands required to carry out each of these
- menu options.
-
-
- Benefits and Advantages
-
- -ExecMenu can be memory resident, requiring the loading of the Menu
- program and associated files only once.
- -The software is entirely written in Turbo Pascal.
- -The program requires only 18,192 bytes of storage space.
- -Password protection on any or all menu options.
- -Ability to define eight individual menus.
- -Eight menu options per menu.
- -Individually titled menus, automatically centered.
- -Compatible with floppy diskette or fixed disk systems.
- -Help messages with each option.
- -Many individual features that can be changed in the constant
- declarations section of the source code.
- -Current date and time displayed.
- -Multiple keys perform the same function for logical selection.
-
-
- How Does ExecMenu Work
-
- ExecMenu is designed to be the direct interface with the user, so as
- not to allow the user direct access to DOS itself. The software reads a
- Menu Definition File containing the information needed to display options
- for the user to choose from and the DOS commands to reach these options.
-
-
-
-
-
-
-
-
-
-
- Page 2
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- The concept used by ExecMenu is the facility provided by DOS, called
- batch files. A batch file contains a list of DOS commands that you wish to
- be executed by entering one command. A good example of a batch file is the
- AUTOEXEC.BAT. This batch file is executed automatically by DOS at boot
- time. It should contain commands desired or needed to initialize your
- system. Examples might be to set up a RAM disk or setting the time for your
- time card.
-
- ExecMenu builds a batch file containing the commands required to carry
- out the menu option selected. This requires the use of the batch file
- called AUTO.BAT. AUTO.BAT contains two commands; the first is ExecMenu,
- which executes the menu program, and the second is TEMP, which is a batch
- file containing commands written to it by ExecMenu. After selecting your
- desired option from the menu, ExecMenu creates TEMP.BAT which in turn is
- executed by AUTO.BAT. The TEMP.BAT batch file will contain the commands
- required to execute the selected option. If you wish to return to ExecMenu,
- the last statement in the defined batch file must be a call to ExecMenu.
-
-
- HOW TO USE ExecMenu
-
- The best way to learn how to use ExecMenu is to experiment with it.
- There are examples listed here in the documentation and examples included
- with the package.
-
-
- Setting up ExecMenu for the first time
-
- A text editor such as EDLIN, WordStar or the Turbo Editor, and a
- knowledge of DOS are required to initially set ExecMenu up. Thereafter, its
- use consists of simply selecting options from the menu. Start by formatting
- a new diskette and loading the diskette with the Disk Operating System.
- Copy the three files listed below onto the diskette. To gain some idea of
- what automenu looks like, execute the batch file AUTO and select the option
- 'Disk Directory'.
-
- AUTO.BAT
- ExecMenu.COM
- ExecMenu.DEF
-
-
-
-
-
-
-
-
-
-
-
-
- Page 3
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- ExecMenu Menu Definition File (MDF)
-
- The default Menu Definition File used by ExecMenu is called
- ExecMenu.DEF which contains all the information needed by ExecMenu to build
- the menu. Before starting, determine what you plan to title your menus,
- what menu options you wish to have, and the DOS commands required to
- execute those options. This information can then be used to build a Menu
- Definition File. Below is a sample.
-
- %TITLE OF MENU ONE
- .THIS IS A COMMENT LINE
- .TO PLACE HELPFUL INFO
- .*OPTION ONE OF MENU ONE
- ?OPTION HELP
- ^OPTION PASSWORD
- *OPTION TWO OF MENU ONE
- +DOS COMMAND
- +DOS COMMAND
- %TITLE OF MENU TWO
- *OPTION ONE OF MENU TWO
- +DOS COMMAND
- *OPTION TWO OF MENU TWO
- +DOS COMMAND
- +DOS COMMAND
-
- The software determines the difference of the items listed in the Menu
- Definition File by the first character in each line. These special
- characters are listed below (See Reference Section for more information):
-
-
- Character Name Function Performed
-
- % percent sign title
-
- * asterisk option
-
- ? question mark option help
-
- ^ circumflex password
-
- + plus sign batch dos command
-
- . period comment
-
-
-
-
-
-
-
-
- Page 4
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- The maximum length for each line of information is 40 characters. The
- maximum number of menus that can be defined by one menu definition file is
- eight, with a maximum number of eight options per menu. The maximum number
- of batch commands for each option is ten. Use the example on the disk as a
- guide to setting up the MENU.DEF file.
-
-
- How to run ExecMenu
-
- Execute the batch file AUTO. This batch file will execute MENU and
- then allow the execution of a batch file built by MENU.
-
-
- Functional Characteristics
-
- The menu options or menu items can be selected in various ways. The
- particular menu option with the arrow pointing to it can be selected by
- pressing the return key. The arrow pointer can be moved to another menu
- option by using the up and down arrow keys. A menu option can also be
- selected by pressing the number value or FUNCTION KEY corresponding to that
- menu option. If more than one menu has been defined, the user can change to
- the other menus by pressing F10 or the right arrow key to go forward on
- menu and F9 or the left arrow key to go backwards one menu.
-
- While the user is at the menu, various fields of information are being
- displayed. The menu selected tells the user how many menus are available
- and which particular one is being displayed. The option help field is also
- displayed at the bottom of the menu above the status block. This field
- displays additional information about the current option being pointed to
- by the pointer, but only if the field has been defined by the option. The
- time and date are also displayed in the status block.
-
-
- Uses and Performance for Floppy Diskette Systems
-
- For a floppy based system, placing the ExecMenu files on a newly
- formatted diskette will enhance ExecMenu's performance. The use of a RAM
- drive and the copying of ExecMenu and the batch files to the drive will
- also help. The Customization section can also help to change the location
- of where the temporary batch file is written. For example, the RAM Drive.
-
-
-
-
-
-
-
-
-
-
-
- Page 5
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- REFERENCE SECTION
-
-
- Example of ExecMenu Menu Definition File
-
- ..................................
- ..................................
- %******* MS DOS Options *******
- ..................................
- *Directory of Drive A:
- ?Will display all files of drive A:
- +echo Use PrtSc to print.
- +pause
- +DIR A:/P
- +pause
- +c:auto
- ..................................
- *Directory of Drive B:
- ?Will display all files of drive B:
- +echo Use PrtSc to print.
- +pause
- +DIR B:/P
- +pause
- +c:auto
- ..................................
- *Format a data diskette
- ?Format disk in Drive B:
- ^DOS
- +C:FORMAT B:/v
- +c:auto
- ..................................
- *Format a system diskette
- ?Format disk in Drive B:
- ^DOS
- +C:FORMAT B:/s/v
- +c:auto
- ..................................
- ..................................
-
- In the above example the batch files, the FORMAT command, and the
- ExecMenu program have been placed in the RAM Drive 'C:'. This allows the
- continued operation of ExecMenu without the need to reinstall the program
- disk and allows a much faster load time when the program is run again from
- the batch file.
-
-
-
-
-
-
-
- Page 6
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- Example of AUTOEXEC.BAT
-
- echo off <- don't display commands that follow
- prompt $p$g <- set up a directory prompt
- cls
- echo Stand-by. Copying some files ....
- copy auto.bat c:/v > nul
- copy execmenu.com c:/v > nul <- copy some files that will
- copy execmenu.def c:/v > nul <- be used by the execmenu
- copy format.com c:/v > nul <- program
- copy more.com c:/v > nul
- c:auto <- execute the AUTO.BAT file
-
-
- Example of AUTO.BAT
-
- echo off <- don't display commands that follow
- execmenu <- execute the execmenu program
- if errorlevel 1 goto quit <- check for error during execmenu
- temp <- no error, execute temp.bat
- :quit <- label for error goto statement
- echo on <- display commands that follow
-
- Example of Configuration File
-
- buffers = 10 <- sets buffers to ten
- device = vdisk.sys size 80 <- sets up a ram drive
- device = mouse.sys <- loads mouse device driver
-
-
- Menu Definition File Functions
-
- This section describes the various functions that can be defined in
- the Menu Definition File (MDF). The MDF is a standard text file that is
- read by ExecMenu to obtain the information needed to display the menu. The
- file consists of lines of information ending with a carriage return and the
- line feed characters. The first character of each line is used to define
- the function of that line to ExecMenu. The end of a MDF is indicated by the
- end of the text file. Below is a list of the valid functions and a
- description of each.
-
-
- ( % ) - Title
-
- Title - a title must be defined for each individual menu. This title
- will be displayed on the second line on the menu. The title will also be
- centered automatically. In each MDF the user can define eight individual
- menus in this file.
-
-
-
- Page 7
-
-
-
- EXECUTIVE MENU
- Version 1.00
- by
- Leroy B. Inman
-
-
-
-
-
- ( * ) - Option
-
- Option - this is the actual item displayed for the user to choose
- from. There is a limit of eight different options to each of the eight
- individual menus in the file.
-
-
- ( ? ) - Option Help
-
- Option help - will cause the text that follows to be displayed as a
- description for the option that the arrow pointer is pointing to. The text
- is centered automatically and printed on a line above the status block at
- the bottom of the menu.
-
-
- ( ^ ) - Password
-
- Password - the text that follows this function will be used as the
- password required by the user to gain access to that option selected. A
- maximum of 30 characters is allowed for the password. The example below
- would require the user to enter the password "DOS". The password checking
- routine does not try to determine any differences between UPPER and lower
- case letters.
-
- EXAMPLE: *Return to Disk Operating System
- ^DOS
-
-
- ( + ) - Batch DOS Commands
-
- Batch DOS Commands - This function defines a DOS command to be
- executed in a DOS batch file. There is a limit of ten lines per batch
- file, which can be changed from within the source code file. ExecMenu will
- create a batch file containing the lines marked with this function. After
- the batch file is written, ExecMenu will return to the Disk Operating
- System. Once ExecMenu has terminated the remaining command, "TEMP" will be
- executed. TEMP is the name of the batch file containing commands written to
- it by ExecMenu. It is important that the last command be AUTO, so that
- ExecMenu regains control. If not, the user will be returned to DOS.
-
-
- ( . ) - Comments
-
- Comment - this function is used to place a comment inside the MDF.
- ExecMenu simply ignores this line all together. Anything can be placed on
- this line.
-
-
-
-
-
- Page 8
-