home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 December
/
simtel1292_SIMTEL_1292_Walnut_Creek.iso
/
msdos
/
menu
/
dosmenu.arc
/
M1.MEN
next >
Wrap
Text File
|
1987-09-20
|
1KB
|
37 lines
#
# Make the left margin 20 instead of the default of 10
&l 20
# Make the cursor end up on the bottom row at exit time
&c 0
# Put prompts on row 5
&p 5
# SAMPLE MENU
#
# Example menu file.
#<-- Indicates this line is a comment - is skipped
# First line is the title
**** MAIN MENU *****
# The '!' character separates the menu text from the DOS
# commands to execute when the item is selected.
DOS PROMPT ! c:\command
# This one asks for a parameter. The text between the * *
# is the prompt. The %s is filled in by what the user enters.
# You get two prompts, by more that one parameter could be
# entered for each prompt.
TYPE A FILE!*Enter file name to type: * type %s | more ! pause
# ^- NO spaces between the ! and the *
SHOW DIRECTORY ! dir
# The '%' is used for continuation of a command.
% ! pause
# Example of two prompts.
COPY FILES !* Enter the source file name : ** Enter to destination file : *
% copy %s %s
#
# Using one prompt to get two parameters
COMPARE FILES !* Enter the first file and second file name : *
% comp %s
# The '@' sign causes an exit from the menu ( NO space )
EXIT FROM THIS MENU !@
# Note that you can call sub-menus
# Exiting from a sub-menu will return to the calling menu.