home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / MENU / DOSMENU.ZIP / MENUV2.DOC < prev   
Text File  |  1987-09-20  |  3KB  |  93 lines

  1.  
  2.         V2.0
  3.  
  4.         MENU.EXE Instructions
  5.  
  6.         Author: Jim Donelson
  7.                 9520 S.W. 2nd Rd.
  8.                 Boca Raton, FL   33428
  9.  
  10.         This program paints a menu on the screen, prompts for a selection,
  11.         then executes the commands associated with the prompt item.
  12.         It enables you to easly create a menu, that will, when
  13.         an item is selected, execute a string od DOS commands.
  14.  
  15.          The best way to see how to design the menu files is to
  16.          look at the enclosed example. Here is a summary of the
  17.          syntax of the menu file:
  18.  
  19.         New features for Version 2:
  20.  
  21.         Thanks to MARV for these great ideas to make this more useful.
  22.         A new operator has been added. The '&' in column 1 followed
  23.         by a letter. The letter MUST be in column 2.
  24.         A sample has been added to m1.men.
  25.  
  26.         Example:
  27.         &l 20          (Set the left hand margin to 20)
  28.         &c 23          (Leave the cursor at the bottom on exit)
  29.         &p 5           (Put prompts on row 5 instead of 0)
  30.  
  31.         The 'l' operator (MUST be lower case) sets the left hand
  32.         of the menu to help you center the text. The 'c' operator
  33.         defines the row to leave the cursor on. Use 0 for the top
  34.         of the screen. Note that this only works if you use the
  35.         exit command. [ctrl][break] will leave trash.
  36.  
  37.          1. To execute a menu file:
  38.  
  39.          C>menu m1.men
  40.  
  41.          m1.men is the file name of the menu file to execute.
  42.  
  43.          2. In a menu file:
  44.  
  45.          a) Line 1 is the title. ( not counting comments )
  46.          It will be displayed at the top of the screen.
  47.  
  48.          b) Each following line is a menu item. A menu item must
  49.          start in column 0. A comment line starts with the '#'
  50.          character, and is ignored. A menu item line may be continued
  51.          by placing a the '%' character in column 1.
  52.  
  53.  
  54.          c) The '!' character ends the menu item text and the text
  55.          following the '!' is a DOS command.
  56.          Example:
  57.  
  58.          SHOW DIRECTORY ! dir ! pause
  59.  
  60.          The text "SHOW DIRECTORY" would appear on the menu. The
  61.          commands "dir" and "pause" would be executed by DOS.
  62.          ( The pause is needed to let the user view the directory
  63.          listing ).
  64.  
  65.          d) One parameter per menu item may be asked for. A "*" must
  66.          immediately follow the !.
  67.          Example:
  68.  
  69.          TYPE A FILE !*Enter the file name : * type %s
  70.  
  71.          The '*' must follow the '!' with no intervening spaces.
  72.          The users response will be put where the %s is.
  73.          If the user entered 'myfile.doc' then the command
  74.          'type myfile.doc' would be issued to DOS.
  75.  
  76.          e) The '@' character will cause an exit from a menu, as will
  77.          pressing [Ctrl] [Break].
  78.          Example:
  79.  
  80.          EXIT MENU !@
  81.  
  82.          PLEASE:
  83.          This and other programs are given freely for your
  84.          own use. All I ask is that you tell how useful you found
  85.          it and any enhancement suggestions you may have.
  86.          I am a programmer by profession, and I can write any
  87.          program you can think up so send me mail here
  88.          on GENIE.
  89.  
  90.          <<Send a letter using mail to J.DONELSON for feedback.>>
  91.  
  92.          Good Luck !!
  93.