home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
menu
/
dosmenu.arc
/
MENUV2.DOC
< prev
Wrap
Text File
|
1987-09-20
|
3KB
|
93 lines
V2.0
MENU.EXE Instructions
Author: Jim Donelson
9520 S.W. 2nd Rd.
Boca Raton, FL 33428
This program paints a menu on the screen, prompts for a selection,
then executes the commands associated with the prompt item.
It enables you to easly create a menu, that will, when
an item is selected, execute a string od DOS commands.
The best way to see how to design the menu files is to
look at the enclosed example. Here is a summary of the
syntax of the menu file:
New features for Version 2:
Thanks to MARV for these great ideas to make this more useful.
A new operator has been added. The '&' in column 1 followed
by a letter. The letter MUST be in column 2.
A sample has been added to m1.men.
Example:
&l 20 (Set the left hand margin to 20)
&c 23 (Leave the cursor at the bottom on exit)
&p 5 (Put prompts on row 5 instead of 0)
The 'l' operator (MUST be lower case) sets the left hand
of the menu to help you center the text. The 'c' operator
defines the row to leave the cursor on. Use 0 for the top
of the screen. Note that this only works if you use the
exit command. [ctrl][break] will leave trash.
1. To execute a menu file:
C>menu m1.men
m1.men is the file name of the menu file to execute.
2. In a menu file:
a) Line 1 is the title. ( not counting comments )
It will be displayed at the top of the screen.
b) Each following line is a menu item. A menu item must
start in column 0. A comment line starts with the '#'
character, and is ignored. A menu item line may be continued
by placing a the '%' character in column 1.
c) The '!' character ends the menu item text and the text
following the '!' is a DOS command.
Example:
SHOW DIRECTORY ! dir ! pause
The text "SHOW DIRECTORY" would appear on the menu. The
commands "dir" and "pause" would be executed by DOS.
( The pause is needed to let the user view the directory
listing ).
d) One parameter per menu item may be asked for. A "*" must
immediately follow the !.
Example:
TYPE A FILE !*Enter the file name : * type %s
The '*' must follow the '!' with no intervening spaces.
The users response will be put where the %s is.
If the user entered 'myfile.doc' then the command
'type myfile.doc' would be issued to DOS.
e) The '@' character will cause an exit from a menu, as will
pressing [Ctrl] [Break].
Example:
EXIT MENU !@
PLEASE:
This and other programs are given freely for your
own use. All I ask is that you tell how useful you found
it and any enhancement suggestions you may have.
I am a programmer by profession, and I can write any
program you can think up so send me mail here
on GENIE.
<<Send a letter using mail to J.DONELSON for feedback.>>
Good Luck !!