home *** CD-ROM | disk | FTP | other *** search
/ Mega CD-ROM 1 / megacd_rom_1.zip / megacd_rom_1 / MENU / DOSMENU.ZIP / M1.MEN next >
Text File  |  1987-09-20  |  1KB  |  37 lines

  1. #
  2. # Make the left margin 20 instead of the default of 10
  3. &l 20
  4. # Make the cursor end up on the bottom row at exit time
  5. &c 0
  6. # Put prompts on row 5
  7. &p 5
  8. #                 SAMPLE MENU
  9. #
  10. # Example menu file.
  11. #<-- Indicates this line is a comment - is skipped
  12. # First line is the title
  13.                          **** MAIN MENU *****
  14. # The '!' character separates the menu text from the DOS
  15. # commands to execute when the item is selected.
  16. DOS PROMPT ! c:\command
  17. # This one asks for a parameter. The text between the *    *
  18. # is the prompt. The %s is filled in by what the user enters.
  19. # You get two prompts, by more that one parameter could be
  20. # entered for each prompt.
  21. TYPE A FILE!*Enter file name to type: * type %s | more ! pause
  22. #           ^- NO spaces between the ! and the *
  23. SHOW DIRECTORY ! dir
  24. # The '%' is used for continuation of a command.
  25. %  ! pause
  26. # Example of two prompts.
  27. COPY FILES !* Enter the source file name : ** Enter to destination file : *
  28. % copy %s %s
  29. #
  30. # Using one prompt to get two parameters
  31. COMPARE FILES !* Enter the first file and second file name : *
  32. % comp %s
  33. # The '@' sign causes an exit from the menu ( NO space )
  34. EXIT FROM THIS MENU !@
  35. # Note that you can call sub-menus
  36. # Exiting from a sub-menu will return to the calling menu.
  37.