home *** CD-ROM | disk | FTP | other *** search
/ Dynamic Music Station / MUSIC_SOUND.iso / zip / misc / ben300.exe / BEN.TXT < prev    next >
Encoding:
Text File  |  1992-07-15  |  48.1 KB  |  1,383 lines

  1. ┌───────────────────────────────────────────────────────────────┐
  2. │                                                               │
  3. │          ╒═════════╗  ╒═════════╗  ╒════╗   ╒════╗            │
  4. │          └┐  ╓───┐ ╚╗ └┐  ╓───┐ ║  │    ╚╗  └┐  ╓╜            │
  5. │           │  ║   │  ║  │  ║   └─╜  │  ╟┐ ╚╗  │  ║             │
  6. │           │  ╚═══╛  ║  │  ╚══╗     │  ║└┐ ╚╗ │  ║             │
  7. │           │  ╓───┐  ║  │  ╓──╜     │  ║ └┐ ╚╗│  ║             │
  8. │           │  ║   │  ║  │  ║   ╒═╗  │  ║  └┐ ╚╡  ║             │
  9. │          ╒╛  ╚═══╛ ╓╜ ╒╛  ╚═══╛ ║ ╒╛  ╚╗  └┐    ║             │
  10. │          └─────────╜  └─────────╜ └────╜   └────╜             │
  11. │                                                               │
  12. │                                                               │
  13. │                                                               │
  14. │                   BATCH ENHANCER VERSION 3.00                 │
  15. │                                                               │
  16. │                                                               │
  17. │                      (C) 1992 by Simvis Soft                  │
  18. │                        All Rights Reserved                    │ 
  19. │                                                               │
  20. └───────────────────────────────────────────────────────────────┘
  21.                                                                  
  22. This program is distributed under the Shareware scheme. You are
  23. encouraged to give copies of this program to other computer
  24. users. If you decide to use the program, support the Shareware
  25. marketing concept by becoming a registered user. Read section 6.1
  26. for more details.
  27.  
  28. ─────────────────────────────────────────────────────────────────
  29. Table of Contents
  30.  
  31. 1.1  What is BEN?
  32. 1.2  Advantages of BEN over other batch file enhancement programs
  33. 1.3  System requirements
  34. 1.4  How to install BEN
  35. 1.5  How to run BEN
  36.  
  37. 2.1  Quick introduction to BEN's functions
  38. 2.2  In-depth discussion of each BEN function
  39. 2.3  BEN and environment variables
  40.  
  41. 3.1  BENEdit
  42.  
  43. 4.1  Legality information
  44.  
  45. 5.1  How to install ANSI.SYS
  46. 5.2  Hints and tips
  47. 5.3  Support, bugs report, comments, problems...
  48.  
  49. 6.1  Shareware registration
  50.           
  51. ─────────────────────────────────────────────────────────────────
  52. 1.1  What is BEN?
  53.  
  54. BEN stands for the Batch ENhancer:
  55.           
  56. *BATCH*
  57. Batch is a very simple yet powerful language DOS uses. Batch
  58. files always end with the extension .BAT. For example, the
  59. AUTOEXEC.BAT in the root directory of your boot disk is a batch
  60. file. Although batch file is very flexible, it has some unwelcome
  61. weaknesses. For example, it cannot get input from the user or
  62. even do simple color-changing.
  63.           
  64. *ENHANCER*
  65. BEN is developed to compensate for Batch language's weaknesses.
  66. BEN improve many aspects of the current batch file functions, and
  67. it also introduce many new ones. With BEN, you can produce very
  68. useful batch files that can even compete with compiled
  69. programming codes. Yet, BEN is so simple to use that even a
  70. beginner can produce attractive batch files in no time at all.
  71. Once you start using BEN, you will be able to incorporate colors,
  72. sounds, menus, pop-up boxes and a host of other spectacular
  73. features into any batch file that you ever write.
  74.  
  75. To see an example of what BEN can do for you, run the included
  76. BENDEMO.BAT. Remember to keep in mind that BENDEMO.BAT is only a
  77. batch file!
  78.  
  79. ─────────────────────────────────────────────────────────────────
  80. 1.2  Advantages of BEN over other batch file enhancement
  81.      programs:
  82.  
  83. -    Large number of powerful functions (38 in total) all
  84.      contained into one EXE file.
  85.  
  86. -    All of these functions are very easy to use.
  87.  
  88. -    Comes with BENEdit, a text editor that is tailored for BEN.
  89.      With BENEdit, you can edit all your batch files and access
  90.      all the features of BEN quickly and easily.
  91.  
  92. -    Optimized for speed.
  93.  
  94. -    Perfect for complementing any menuing system (eg. Magik
  95.      Menu).
  96.  
  97. -    Can be used for programming any batch utilities (eg.
  98.      INSTALL.BAT).
  99.  
  100. -    Compatible with DOS and Windows.
  101.  
  102. -    Compatible with the network environment. You can now use BEN
  103.      to program all the network batch files!
  104.  
  105. ─────────────────────────────────────────────────────────────────
  106. 1.3  System requirements:
  107.  
  108. IBM PC/Compatible with 256k+ RAM
  109.  
  110. PC/MS-DOS 2.1 or higher
  111.           
  112. Suggested:     ANSI.SYS or equivalent
  113.           
  114. (Note: ANSI.SYS is a driver for the display format designed by
  115. the American National Standards Institute. This driver is
  116. included with all versions of PC/MS-DOS. It is required for the
  117. COLOR function. If ANSI.SYS is not installed in your computer
  118. yet, please refer to section 5.1 for instructions on
  119. installation.)
  120.  
  121. ─────────────────────────────────────────────────────────────────
  122. 1.4  How to install BEN:
  123.  
  124. Use the supplied INSTALL.BAT, or just copy every file into a
  125. directory of your choice.
  126.  
  127. ─────────────────────────────────────────────────────────────────
  128. 1.5  How to run BEN:
  129.  
  130. Format:   [d:][pathname] BEN function [params] [functions
  131.           [params]...]
  132.  
  133. Entering the command "BEN" alone in DOS gives you an online help
  134. of BEN's functions. Make sure that the file BEN.HLP is in the
  135. same directory as BEN.EXE. Otherwise, the online help wouldn't
  136. work.
  137.  
  138. To access a BEN function, you must enter the command "BEN"
  139. followed by the name of the function. Some functions doesn't
  140. require any parameter. An example of this is the BEEP function.
  141. You can use it by entering this command into your batch file:
  142.  
  143. BEN BEEP
  144.  
  145. Other functions of BEN require one or more parameters. For
  146. example, you can clear the screen with the color blue by entering
  147. this command into your
  148. batch file:
  149.  
  150. BEN CLS BLUE
  151.  
  152. BEN functions can be "stacked" one after another in a command
  153. line. For example, you can group the BEEP function and the CLS
  154. function together, one after another. In this case, BEN will
  155. first create a beep, then it will clear the screen with the color
  156. blue:
  157.  
  158. BEN BEEP CLS BLUE
  159.  
  160. When you stack functions together, you may use the "/" separators
  161. if you want. This is not mandatory, but it helps to increase the
  162. readability of your batch file. For example:
  163.  
  164. BEN BEEP / CLS BLUE
  165.  
  166. ─────────────────────────────────────────────────────────────────
  167. 2.1  Quick introduction to BEN's functions:
  168.  
  169. ASK:           ASK gives the user a choice of keys to press. The
  170.                batch file can then interpret the result and act
  171.                accordingly.
  172.  
  173. BEEP:          BEEP simply creates a "beep" sound.
  174.  
  175. BOX:           BOX creates a BOX on the screen.
  176.  
  177. CLEANUP:       CLEANUP is used at the end of batch files. Its
  178.                purpose is cleaning up the mess left behind by
  179.                batch routines.
  180.  
  181. CLS:           CLS clears the screen with the specified color.
  182.  
  183. COLOR:         COLOR changes the current writing color.
  184.  
  185. CURSOR:        CURSOR changes the cursor shape.
  186.  
  187. DELAY:         DELAY pauses the computer for the
  188.                specified period of time.
  189.  
  190. DIRDISP:       DIRDISP displays a directory selection dialog box
  191.                where the user is given the opportunity to choose
  192.                a file. This is similar to the FILE OPEN dialog
  193.                box of Windows.
  194.  
  195. DIRDISPA:      DIRDISPA is an advanced version of DIRDISP.
  196.  
  197. ECHO:          Same as the DOS ECHO command.
  198.  
  199. EGAVGA:        EGAVGA switches the EGA 43 / VGA 50 line mode on
  200.                or off.
  201.  
  202. EXTRACT:       EXTRACT returns a part of a fully qualified
  203.                filename.
  204.  
  205. FLUSH:         FLUSH clears the keyboard buffer.
  206.  
  207. GETCD:         GETCD returns the current directory to the batch
  208.                file.
  209.  
  210. GETKEY:        GETKEY pauses the computer until the user presses
  211.                a key. This key is returned to the batch file.
  212.  
  213. GETKEYU:       GETKEYU is the same as GETKEY, except
  214.                the key pressed by the user is converted
  215.                into uppercase before it is returned to
  216.                the batch file.
  217.  
  218. GETLINE:       GETLINE pauses the computer until the user types a
  219.                string and presses ENTER. The string is returned
  220.                to the batch file.
  221.  
  222. GETLINEU:      GETLINEU is the same as GETLINE, except
  223.                the string typed by the user is
  224.                converted into uppercase before it is
  225.                returned to the batch file.
  226.  
  227. GETVIDEO:      GETVIDEO checks what kind of video
  228.                system is installed (eg. CGA, VGA) and
  229.                return the result to the batch file.
  230.  
  231. GROWFILLEDBOX: GROWFILLEDBOX displays a filled box on the screen.
  232.                The box "grows" out to the screen for a special
  233.                effect.
  234.  
  235. LIST:          LIST is a file browser.
  236.  
  237. LOCATE:        LOCATE moves the cursor to the specified screen
  238.                position.
  239.  
  240. MENU:          MENU displays a menu on the screen. The choice
  241.                selected by the user is returned to the batch
  242.                file.
  243.  
  244. MESSAGE:       MESSAGE draws a box on the screen and displays the
  245.                specified message.
  246.  
  247. PAUSE:         PAUSE pauses the computer until the user
  248.                presses a key.
  249.  
  250. PLAY:          PLAY produces music from the speaker.
  251.                BEN PLAY uses the same statements that
  252.                the BASIC PLAY uses.
  253.  
  254. SAVEPATH:      SAVEPATH is a environment-memory conservation
  255.                function.
  256.  
  257. SCROLL:        Scrolls a specified region of text up, down, left
  258.                or right.
  259.  
  260. SHADFILLEDBOX: SHADFILLEDBOX displays a filled box on the screen.
  261.                This box has a shadow.
  262.  
  263. SHELL:         SHELL lets the user jump to DOS in the middle of a
  264.                batch file.
  265.  
  266. SOUND:         SOUND produces a sound with the specified
  267.                frequency and the specified duration.
  268.  
  269. T:             T uses a data file to run BEN functions more
  270.                efficiently.
  271.  
  272. TITLEDBOX:     TITLEDBOX displays a filled box with a title on
  273.                the screen.
  274.  
  275. TRANSPARENTBOX TRANSPARENTBOX shades a specified region of the
  276.                screen with the specified color.
  277.  
  278. WRITE:         Displays a string of text on the screen with the
  279.                specified color.
  280.  
  281. WRITEC:        Displays a string of text on the screen with the
  282.                specified color. The text is centred between the
  283.                two sides of the monitor.
  284.  
  285. WRITEV:        Displays a string of text on the screen with the
  286.                specified color. The text is oriented vertically.
  287.  
  288. ─────────────────────────────────────────────────────────────────
  289. 2.2  In-depth discussion of each BEN function.
  290.  
  291. BOX FUNCTIONS
  292. ─────────────
  293.  
  294. BOX x1 y1 x2 y2 foreground background borderstyle
  295.  
  296.      This function draws an empty box on the screen with an
  297.      upper-left corner of (x1,y1) and a lower-right corner of
  298.      (x2,y2). Borderstyle can be one of the following:
  299.  
  300.      0    -    no border
  301.      1    -    single line box (─)
  302.      2    -    double line box (═)
  303.      3    -    double sides, single top and bottom
  304.      4    -    single sides, double top and bottom
  305.      5    -    single left and upper, double lower and right
  306.      6    -    menu box style
  307.      7+   -    the border is drawn using the ASCII character
  308.                represented by the style value.
  309.  
  310.      The "foreground" and "background" colors can be specified
  311.      with special words that BEN recognize. These words are:
  312.      BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY,
  313.      DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHT
  314.      MAGENTA, YELLOW, and WHITE.
  315.  
  316.      You can also specify the colors with a number if you want.
  317.      For example, instead of using the word "BLACK", you can use
  318.      the number 0. Instead of using the word "BLUE", you can use
  319.      the number 1. And so on.
  320.  
  321.      Examples: BEN BOX 1 1 80 25 WHITE BLUE 1
  322.                BEN BOX 10 10 20 20 YELLOW BLACK 3
  323.                BEN BOX 4 4 8 8 9 2 65
  324.  
  325.      In the first example, BEN draws a white on blue box with a
  326.      single-line border, an upper-left corner of (1,1) and a
  327.      lower-right corner of (80,25).
  328.  
  329.      In the second example, BEN draws a yellow on black box with
  330.      double-lined borders on the sides and single-lined borders
  331.      on the top and the bottom. The box has an upper-left corner
  332.      of (10,10) and a lower-right corner of (20,20).
  333.  
  334.      In the third example, BEN draws a light-blue on green box
  335.      with a border that is drawn by the ASCII character 65 ("A").
  336.      The box has an upper-left corner of (4,4) and a lower-right
  337.      corner of (8,8). 
  338.  
  339. FILLEDBOX x1 y1 x2 y2 foreground background borderstyle
  340.  
  341.      Same as BOX, but the box is filled instead of empty.
  342.  
  343.      Examples: BEN FILLEDBOX 1 1 80 25 WHITE BLUE 1
  344.                BEN FILLEDBOX 10 10 20 20 YELLOW BLACK 3
  345.                BEN FILLEDBOX 4 4 8 8 9 9 2 65
  346.  
  347. GROWFILLEDBOX x1 y1 x2 y2 foreground background borderstyle
  348.  
  349.      Same as FILLEDBOX, but the box "grows" out onto the screen,
  350.      creating a spectacular effect.
  351.  
  352.      Examples: BEN GROWFILLEDBOX 1 1 80 25 WHITE BLUE 1
  353.                BEN GROWFILLEDBOX 10 10 20 20 YELLOW BLACK 3
  354.                BEN GROWFILLEDBOX 4 4 8 8 9 2 65
  355.  
  356. SHADFILLEDBOX x1 y1 x2 y2 foreground background borderstyle
  357.  
  358.      Same as FILLEDBOX, but the box has a shadow.
  359.  
  360.      Examples: BEN SHADFILLEDBOX 1 1 80 25 WHITE BLUE 1
  361.                BEN SHADFILLEDBOX 10 10 20 20 YELLOW BLACK 3
  362.                BEN SHADFILLEDBOX 4 4 8 8 9 2 65
  363.  
  364. TITLEDBOX x1 y1 x2 y2 foreground background borderstyle title
  365.  
  366.      Same as FILLEDBOX, but the box has a title. Please note that
  367.      tildes (~) in the title are interpreted as spaces.
  368.  
  369.      Examples: BEN TITLEDBOX 1 1 80 25 WHITE BLUE 1 Great~box!
  370.                BEN TITLEDBOX 10 10 20 20 YELLOW BLACK 3 Another!
  371.                BEN TITLEDBOX 4 4 8 8 9 2 65 Best~box~here!
  372.  
  373. TRANSPARENTBOX x1 y1 x2 y2 foreground background
  374.  
  375.      Paints the region specified by (x1,y1) - (x2,y2) with the
  376.      specified foreground and background colors. Text that are
  377.      originally on the screen are not erased; they are just
  378.      painted with a new color. Please note that the borderstyle
  379.      parameter is not required.
  380.  
  381.      Examples: BEN TRANSPARENTBOX 1 1 80 25 WHITE BLUE
  382.                BEN TRANSPARENTBOX 10 10 20 20 YELLOW BLACK
  383.                BEN TRANSPARENTBOX 4 4 8 8 9 2
  384.  
  385.  
  386. INPUT FUNCTIONS
  387. ───────────────
  388.  
  389. ASK options
  390.  
  391.      Waits for the user to press a key that is contained in the
  392.      'options' string. The option that the user selects is passed
  393.      to the batch file as an errorlevel. (For more details on
  394.      errorlevels, please refer to your DOS manual.)
  395.  
  396.      For instance, if the options string is ABCDE and the user
  397.      presses the letter C on the keyboard, an errorlevel of 3 is
  398.      returned (C is the third character of the string).
  399.  
  400.      Example:  @ECHO OFF
  401.                BEN ECHO A. Format your hard drive.
  402.                BEN ECHO B. Diskcopy a disk.
  403.                BEN ECHO C. Run Windows.
  404.                BEN ECHO D. Run DOSShell.
  405.                BEN ECHO E. Play Sim City.
  406.                BEN ECHO ~
  407.                BEN ECHO Please make your selection.
  408.                BEN ASK ABCDE
  409.  
  410.                IF ERRORLEVEL 5 IF NOT ERRORLEVEL 6 GOTO SIMCITY
  411.                IF ERRORLEVEL 4 IF NOT ERRORLEVEL 5 DOSSHELL
  412.                IF ERRORLEVEL 3 IF NOT ERRORLEVEL 4 C:\WIN\WIN
  413.                IF ERRORLEVEL 2 IF NOT ERRORLEVEL 3 DISKCOPY A: A:
  414.                IF ERRORLEVEL 1 IF NOT ERRORLEVEL 2 FORMAT C:
  415.                GOTO END
  416.  
  417.                :SIMCITY
  418.                C:
  419.                CD\SIMCITY
  420.                SIMCITY
  421.  
  422.                :END
  423.  
  424. GETKEY
  425.  
  426.      Waits for the user to enter a key. This key is returned via
  427.      the environment variable %BEN% (or %BEN2%, %BEN3%, etc.
  428.      Please refer to section 2.3: "BEN and Environment Variables"
  429.      at for further details.)
  430.  
  431.      Example:  BEN GETKEY
  432.                BEN ECHO You've pressed the %BEN% key!
  433.  
  434. GETKEYU
  435.  
  436.      Same as GETKEYU, but the key is converted into uppercase
  437.      before it is returned.
  438.  
  439.      Example:  BEN GETKEYU
  440.                BEN ECHO You've pressed the %BEN% key!
  441.  
  442. GETLINE
  443.  
  444.      Waits for the user to enter a string. This string is
  445.      returned via the environment variable %BEN% (or %BEN2%,
  446.      %BEN3%, etc. Please refer to section 2.3: "BEN and
  447.      Environment Variables" for further details.)
  448.  
  449.      Example:  BEN ECHO What's your name?
  450.                BEN GETLINE
  451.                BEN ECHO So your name is %BEN%!
  452.                
  453. GETLINEU
  454.  
  455.      Same as GETLINE, but the string is converted into uppercase
  456.      before it is returned.
  457.  
  458.      Example:  BEN ECHO What's your name?
  459.                BEN GETLINEU
  460.                BEN ECHO So your name is %BEN% in uppercase!
  461.  
  462. MENU title choice1 [choice2 choice3...]
  463.  
  464.      Displays a menu on the screen. The choice that is selected
  465.      by the user is passed back to the batch file as an
  466.      errorlevel. For instance, if the user chooses choice #3, an
  467.      errorlevel of 3 is returned. On the other hand, if the user
  468.      opts to choose nothing, then an errorlevel of 0 is returned.
  469.  
  470.      Please note that tildes (~) are interpreted as spaces, and
  471.      no other function can be stacked after the MENU function is
  472.      used. Also, use a minus sign (-) to tell BEN to display a
  473.      blank line.
  474.  
  475.      Example:  @ECHO OFF
  476.                BEN MENU Please~make~a~selection:
  477.                     Format~your~hard~drive Diskcopy~a~disk
  478.                     Run~Windows Run~DOSShell Play~Simcity - Quit
  479.                IF ERRORLEVEL 6 GOTO END
  480.                IF ERRORLEVEL 5 GOTO SIMCITY
  481.                IF ERRORLEVEL 4 GOTO DOSSHELL
  482.                IF ERRORLEVEL 3 GOTO WINDOWS
  483.                IF ERRORLEVEL 2 GOTO DISKCOPY
  484.                IF ERRORLEVEL 1 GOTO FORMAT
  485.                BEN ECHO You didn't make a selection!
  486.                GOTO END
  487.  
  488.                :FORMAT
  489.                FORMAT C:
  490.                GOTO END
  491.  
  492.                :DISKCOPY
  493.                DISKCOPY A: A:
  494.                GOTO END
  495.  
  496.                :WINDOWS
  497.                C:\WIN\WIN
  498.                GOTO END
  499.  
  500.                :DOSSHELL
  501.                DOSSHELL
  502.                GOTO END
  503.  
  504.                :SIMCITY
  505.                C:
  506.                CD\SIMCITY
  507.                SIMCITY
  508.  
  509.                :END
  510.  
  511.      Note:     This example is same in functionality as the
  512.                example that illustrates the ASK function.
  513.  
  514.  
  515. MESSAGE FUNCTIONS
  516. ─────────────────
  517.  
  518. ECHO message [message...]
  519.  
  520.      Works like the DOS ECHO function. Everything after the word
  521.      ECHO is displayed using the current writing color. Thus, no
  522.      other functions can be stacked after ECHO is used.
  523.  
  524.      If you wish to display a blank line, use the command "BEN
  525.      ECHO ~". If you wish to display more than one space between
  526.      two words, use the tilde (~) as a separator instead. For
  527.      example, if you want to display the words "Hello   World,
  528.      this is the computer speaking.", use the command "BEN ECHO
  529.      Hello~~~World, this is the computer speaking."
  530.  
  531.      Examples: BEN ECHO Hello World!
  532.                BEN ECHO This is a test!
  533.                BEN ECHO ~
  534.                BEN ECHO Hello~~~World, this is the computer
  535.                speaking.
  536.  
  537. LIST filename title
  538.  
  539.      Acts as a file browser for the file specified by "filename".
  540.      Tildes (~) in the title are interpreted as spaces.
  541.  
  542.      Examples: BEN LIST C:\AUTOEXEC.BAT This~is~your~AUTOEXEC!
  543.                BEN LIST BEN.TXT You~are~reading~BEN.TXT!
  544.  
  545. MESSAGE line1 [line2 line3...]
  546.  
  547.      Pops up a message box onto the screen. Tildes (~) are
  548.      interpreted as spaces.
  549.  
  550.      Examples: BEN MESSAGE Hello~World! This~is~a~test!
  551.  
  552.      This example will pop up a message box on the screen as
  553.      shown below:
  554.  
  555.                          ┌─[■]───────────┐
  556.                          │               │
  557.                          │Hello World!   │
  558.                          │This is a test!│
  559.                          │               │
  560.                          │     OK  ▄     │
  561.                          │    ▀▀▀▀▀▀     │
  562.                          └───────────────┘
  563.  
  564. WRITE foreground background message
  565.  
  566.      Writes a string onto the screen using the specified
  567.      foreground and background colors. Tildes (~) in the message
  568.      are interpreted as spaces, and a semi-colon (;) at the end
  569.      of the message tells BEN not to wrap to the next line.
  570.  
  571.      The "foreground" and "background" colors can be specified
  572.      with special words that BEN recognize. These words are:
  573.      BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY,
  574.      DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHT
  575.      MAGENTA, YELLOW, and WHITE.
  576.  
  577.      You can also specify the colors with a number if you want.
  578.      For example, instead of using the word "BLACK", you can use
  579.      the number 0. Instead of using the word "BLUE", you can use
  580.      the number 1. And so on.
  581.  
  582.      Examples: BEN WRITE LIGHTRED BLUE Hello~World!
  583.                BEN WRITE LIGHTGREEN BLACK This~is~a~test!;
  584.                BEN WRITE 7 1 Another~test!
  585.  
  586.      In the first example, BEN displays the string "Hello World!"
  587.      with a color of light red on blue.
  588.  
  589.      In the second example, BEN displays the string "This is a
  590.      test!" with a color of light green on black. Since there is
  591.      a semi-colon (;) at the end of the line, BEN doesn't move
  592.      the cursor to the beginning of the next line. Instead, BEN
  593.      keeps the cursor after the exclamation mark.
  594.  
  595.      In the third example, BEN displays the string "Another
  596.      test!" with a color of light gray on blue.
  597.  
  598. WRITEC foreground background message
  599.  
  600.      Same as WRITE, but the message is centered between the two
  601.      sides of the monitor.
  602.  
  603.      Examples: BEN WRITEC LIGHTRED BLUE Hello~World!
  604.                BEN WRITEC LIGHTGREEN BLACK This~is~a~test!;
  605.                BEN WRITEC 7 1 Another~test!
  606.  
  607. WRITEV x y foreground background message
  608.  
  609.      Same as WRITE, but the message is written as a vertical
  610.      column that starts from the position (x,y).
  611.  
  612.      Examples: BEN WRITEV 1 1 YELLOW BLUE An~important~message
  613.                BEN WRITEV 40 10 LIGHTCYAN BLACK Hello!
  614.                BEN WRITEV 80 1 7 1 Great!!!
  615.  
  616.      In the first example, BEN displays a yellow on blue vertical
  617.      column of string starting from (1,1). The string reads "An
  618.      important message".
  619.  
  620.      In the second example, BEN displays a light cyan on black
  621.      vertical column of string starting from (40,10). The string
  622.      reads "Hello!".
  623.  
  624.      In the third example, BEN displays a light gray on blue
  625.      vertical column of string starting from (80,1). The string
  626.      reads "Great!!!".
  627.  
  628.  
  629. MUSIC FUNCTIONS
  630. ───────────────
  631.  
  632. BEEP
  633.  
  634.      Creates a beep sound.
  635.  
  636.      Example:   BEN BEEP
  637.  
  638. PLAY playstring
  639.  
  640.      Plays music using the computer's speaker. The playstring is
  641.      exactly the same in format as the BASIC PLAY statement. Here
  642.      is a list of the music commands supported:
  643.  
  644.      ML:  legato (8/8 note length)
  645.      MN:  normal music (7/8 note length)
  646.      Ln:  length of notes (n=1-64; note length=1/n, eg. n=2 for
  647.           1/2 note)
  648.      Nn:  Note number (n=0-84; 0 is a rest)
  649.      On:  Octave (n=0-6, default 4)
  650.      Pn:  Pause (n=1-64; pause length=1/n, eg. n=4 for 1/4 note)
  651.      Tn:  Tempo (n=32-255, default 120; quarter notes per minute)
  652.      [:   Move down an octave (min 0)
  653.      ]:   Move up an octave (max 6)
  654.  
  655.      You can also use the actual letters of the notes (C, D, E,
  656.      F, G, A, and B). These correspond to "do, re, mi, fa, so,
  657.      la, ti". To play a scale, you should use "CDEFGAB]C".
  658.  
  659.      The notes may be followed by dots, by note lengths, and by
  660.      sharp or flat symbols (a '+' or '#' for a sharp, a '-' for a
  661.      flat). For example, 'D-.' is a dotted D flat. The dot means
  662.      that the note will play for half again its usual length.
  663.      Dots can be repeated.
  664.  
  665.      You can also use "<" for "[" and ">" for "]" in BEN data
  666.      files that are read by BEN's T function. Don't use these in
  667.      the command line however, because DOS will interpret them as
  668.      redirection signs. If you use them, strange errors may
  669.      occur.
  670.  
  671.      Examples: BEN PLAY O5CDEFGFEDCP1CC
  672.                BEN PLAY ]EEEC
  673.  
  674. SOUND frequency duration
  675.  
  676.      Uses the computer's speaker to produce a tone with the
  677.      specified frequency for the specified duration. Frequency is
  678.      measured in hertz and duration is measured in milliseconds.
  679.  
  680.      Examples: BEN SOUND 1000 1000
  681.                BEN SOUND 2000 100
  682.  
  683.  
  684. SCREEN FUNCTIONS
  685. ────────────────
  686.  
  687. CLS background
  688.  
  689.      Clears the screen with the specified color.
  690.  
  691.      The colors can be specified with special words that BEN
  692.      recognize. These words are: BLACK, BLUE, GREEN, CYAN, RED,
  693.      MAGENTA, BROWN, LIGHTGRAY, DARKGRAY, LIGHTBLUE, LIGHTGREEN,
  694.      LIGHTCYAN, LIGHTRED, LIGHT MAGENTA, YELLOW, and WHITE.
  695.  
  696.      You can also specify the color with a number if you want.
  697.      For example, instead of using the word "BLACK", you can use
  698.      the number 0. Instead of using the word "BLUE", you can use
  699.      the number 1. And so on.
  700.  
  701.      Examples: BEN CLS BLUE
  702.                BEN CLS GREEN
  703.  
  704. COLOR foreground background
  705.  
  706.      Changes the current writing color. ANSI.SYS must be loaded
  707.      for this function to operate.
  708.  
  709.      The "foreground" and "background" colors can be specified
  710.      with special words that BEN recognize. These words are:
  711.      BLACK, BLUE, GREEN, CYAN, RED, MAGENTA, BROWN, LIGHTGRAY,
  712.      DARKGRAY, LIGHTBLUE, LIGHTGREEN, LIGHTCYAN, LIGHTRED, LIGHT
  713.      MAGENTA, YELLOW, and WHITE.
  714.  
  715.      You can also specify the colors with a number if you want.
  716.      For example, instead of using the word "BLACK", you can use
  717.      the number 0. Instead of using the word "BLUE", you can use
  718.      the number 1. And so on.
  719.  
  720.      Examples: BEN COLOR YELLOW BLUE
  721.                BEN COLOR WHITE RED
  722.                BEN COLOR 7 1
  723.  
  724. CURSOR ON/OFF/FULL/HALF
  725.  
  726.      Changes the cursor shape. Use ON for a normal cursor (_),
  727.      OFF for no cursor ( ), FULL for a block cursor (█) and HALF
  728.      for a half-block cursor (▄).
  729.  
  730.      Examples: BEN CURSOR OFF
  731.                BEN CURSOR FULL
  732.  
  733. EGAVGA ON/OFF
  734.  
  735.      Switches the EGA 43 / VGA 50 line mode on or off. If the EGA
  736.      43 / VGA 50 line mode is switched on successfully, an
  737.      errorlevel of 2 is passed back to the batch file. Otherwise,
  738.      an errorlevel of 1 is returned.
  739.  
  740.      Example:  @ECHO OFF
  741.                BEN EGAVGA ON
  742.                IF ERRORLEVEL 2 GOTO SUCCESS
  743.                BEN ECHO Sorry. Your computer cannot display in
  744.                BEN ECHO the EGA 43 or the VGA 50 line mode.
  745.                GOTO END
  746.  
  747.                :SUCCESS
  748.                BEN CLS BLUE COLOR WHITE BLUE LOCATE 30 30
  749.                BEN ECHO See how big your screen is!
  750.                BEN LOCATE 30 33
  751.                PAUSE
  752.                BEN EGAVGA OFF
  753.                
  754.                :END
  755.                BEN CLEANUP
  756.  
  757. GETVIDEO
  758.  
  759.      Finds out what kind of video system is installed and returns
  760.      the result via %BEN% (or %BEN2%, %BEN3%, etc. Please refer
  761.      to section 2.3: "BEN and Environment Variables" for further
  762.      details.)
  763.  
  764.      The possible values that can be returned are as follows:
  765.  
  766.      MONO:     The computer has a monochrome system.
  767.      CGA:      The computer has a CGA system.
  768.      EGA:      The computer has an EGA system.
  769.      MCGA:     The computer has a MCGA system.
  770.      VGA:      The computer has a VGA system.
  771.  
  772.      Example:  @ECHO OFF
  773.                BEN GETVIDEO
  774.                IF "%BEN%"=="MONO" GOLF /MONO
  775.                IF "%BEN%"=="CGA" GOLF /CGA
  776.                IF "%BEN%"=="EGA" GOLF /EGA
  777.                IF "%BEN%"=="MCGA" GOLF /MCGA
  778.                IF "%BEN%"=="VGA" GOLF /VGA
  779.  
  780.      This example shows a batch file that passes different
  781.      parameters to the GOLF program (a game?) depending on what
  782.      video system the computer has.
  783.  
  784. LOCATE x y
  785.  
  786.      Moves the screen cursor to the position (x,y).
  787.  
  788.      Examples: BEN LOCATE 1 1
  789.                BEN LOCATE 10 15
  790.  
  791. SCROLL x1 y1 x2 y2 direction
  792.  
  793.      Scrolls the text enclosed in the (x1,y1)-(x2,y2) box.
  794.      'Direction' can be one of the following: UP, DOWN, LEFT,
  795.      RIGHT.
  796.  
  797.      Examples: BEN SCROLL 1 1 80 25 UP
  798.                BEN SCROLL 10 10 20 20 LEFT
  799.  
  800.  
  801. MISCELLANEOUS FUNCTIONS
  802. ───────────────────────
  803.  
  804. CLEANUP
  805.  
  806.      This function should be called at the end of batch files. It
  807.      does four things:
  808.      1.   Changes the writing color to normal DOS color (same as
  809.           calling BEN COLOR LIGHTGRAY BLACK).
  810.      2.   Changes the cursor to a normal shape (same as calling
  811.           BEN CURSOR ON).
  812.      3.   Erases all the environment variables that have been
  813.           created by BEN (IE. %BEN%, %BEN2%, %BEN3%, etc.)
  814.      4.   Restores the PATH if the SAVEPATH function had been
  815.           called previously. (Please refer to the discussion on
  816.           the SAVEPATH function.)
  817.  
  818.      Example:  BEN CLEANUP
  819.  
  820. DELAY milliseconds
  821.  
  822.      Pauses the computer for the specified number of
  823.      milliseconds. (1000 milliseconds = 1 second)
  824.  
  825.      Examples: BEN DELAY 1000
  826.                BEN DELAY 5000
  827.  
  828. DIRDISP directory
  829.  
  830.      Displays a file selection box and allows the user to select
  831.      a file. The name of the selected file is stored into %BEN%
  832.      (or %BEN2%, %BEN3%, etc. Please refer to section 2.3: "BEN
  833.      and Environment Variables" for further details.)
  834.  
  835.      If the user presses ESC and opts not to choose any file,
  836.      then %BEN% is set to contain nothing.
  837.  
  838.      Example:  BEN DIRDISP C:\
  839.                IF "%BEN%"=="" GOTO CHOSE_NOTHING
  840.                BEN ECHO You've chosen %BEN%!
  841.                GOTO END
  842.                :CHOSE_NOTHING
  843.                BEN ECHO You didn't choose any file!
  844.                :END
  845.  
  846. DIRDISPA directory filemask sortorder returnstring
  847.  
  848.      This is the advanced version of DIRDISP. In addition to the
  849.      starting directory, you can specify the file mask and the
  850.      sorting order.
  851.  
  852.      'Filemask' specifies the types of file you want to display.
  853.      For example, if you want to display only EXE files, you can
  854.      use a filemask of "*.EXE". If you want to display both EXE
  855.      and COM files, you can use a filemask of "*.EXE~*.COM"
  856.      [different types of files are separated with tildes (~).]
  857.  
  858.      'Sortorder' specifies the order which DIRDISPA uses to
  859.      display the files. It can be one of the following:
  860.  
  861.      NAME      -    Files sorted on names in ascending order.
  862.      EXTENSION -    Files sorted on extensions in ascending
  863.                     order.
  864.      TIME      -    Files sorted on time from the earliest to the
  865.                     latest.
  866.      SIZE      -    Files sorted on size from the smallest to the
  867.                     largest.
  868.      X         -    Files are unsorted.
  869.  
  870.      You can also specify only the first letter of the sortorder
  871.      you want. For example, instead of "BEN DIRDISPA C:\ *.*
  872.      NAME", you can use "BEN DIRDISPA C:\ *.* N". This is not
  873.      suggested, however, because it decreases the legibility of
  874.      your batch file.
  875.  
  876.      Example:  BEN DIRDISPA C:\ *.BAT~*.SYS~*.EXE EXTENSION
  877.                BEN ECHO You've picked the file %BEN%!
  878.  
  879. EXTRACT source part
  880.  
  881.      This is a function that extracts a certain part of a fully
  882.      qualified filename (eg. the result from DIRDISP or GETCD)
  883.      and stores it into %BEN% (or %BEN2%, %BEN3%, etc. Please
  884.      refer to section 2.3: "BEN and Environment Variables" for
  885.      further details.)
  886.  
  887.      'Source' specifies the source string from which you want to
  888.      extract information. Usually, you should place an
  889.      environment variable here.
  890.  
  891.      'Part' specifies the part of the selected filename you want
  892.      BEN to return to you. It can be one of the following:
  893.  
  894.      DRIVE     -    Returns only the drive part of the source
  895.                     (eg. C:)
  896.      PATH      -    Returns only the path part of the source
  897.                     (eg. \)
  898.      NAME      -    Returns only the name part of the source
  899.                     (eg. AUTOEXEC)
  900.      EXTENSION -    Returns only the extension part of the source
  901.                     (eg. BAT)
  902.      FILENAME  -    Returns both the name and the extension part
  903.                     of the source (eg. AUTOEXEC.BAT)
  904.  
  905.      You can also specify only the first letter of the part you
  906.      want. For example, instead of "BEN EXTRACT C:\ EXTENSION",
  907.      you can use "BEN EXTRACT C:\ E". This is not suggested,
  908.      however, because it decreases the legibility of your batch
  909.      file.
  910.  
  911.      Example:  BEN DIRDISP C:\
  912.                SET SELECT=%BEN%
  913.                BEN EXTRACT %SELECT% DRIVE
  914.                BEN ECHO You've selected a file that is located in
  915.                     drive %BEN%
  916.                BEN EXTRACT %SELECT% PATH
  917.                BEN ECHO This file has a path of %BEN%
  918.                BEN EXTRACT %SELECT% NAME
  919.                BEN ECHO This file's name is %BEN%
  920.                BEN EXTRACT %SELECT% EXTENSION
  921.                BEN ECHO And its extension is %BEN%
  922.                BEN EXTRACT %SELECT% FILENAME
  923.                BEN ECHO Its filename (name+extension) is %BEN%!
  924.                BEN ECHO ~
  925.                BEN GETCD
  926.                BEN EXTRACT %BEN% DRIVE
  927.                BEN ECHO You're currently in %BEN% drive.
  928.  
  929. FLUSH
  930.  
  931.  
  932.      Clears the keyboard buffer.
  933.  
  934.      Example:  BEN FLUSH
  935.  
  936. GETCD
  937.  
  938.      Finds out what the current directory is and stores it into
  939.      %BEN% (or %BEN2%, %BEN3%, etc. Please refer to section 2.3:
  940.      "BEN and Environment Variables" for further details.)
  941.  
  942.      Example:  BEN GETCD
  943.                BEN ECHO Hey man, you're in the %BEN% directory!
  944.  
  945. PAUSE
  946.  
  947.      Pauses the computer until the user presses a key.
  948.  
  949.      Example:   BEN PAUSE
  950.  
  951. SAVEPATH
  952.  
  953.      Saves the PATH environment variable into a file called
  954.      SAVEPATH.DAT (this file is stored in the current directory)
  955.      and erases the PATH environment variable. Using this
  956.      function can free up environment space so that BEN functions
  957.      that make use of the environment (eg. GETLINE) can function
  958.      better. Remember to use the CLEANUP function to restore the
  959.      PATH upon the completion of the batch file.
  960.  
  961.      Caution:  Make sure that you don't change directory after
  962.                using SAVEPATH. If you do, you must change back to
  963.                the directory where SAVEPATH stores SAVEPATH.DAT
  964.                before you run CLEANUP.
  965.  
  966.      Example:  @ECHO OFF
  967.                BEN SAVEPATH
  968.                BEN ECHO Your PATH has been saved!
  969.                BEN CLEANUP
  970.                BEN ECHO Your PATH is restored!
  971.  
  972. SHELL
  973.  
  974.      "Jumps to DOS". After this function is used, the user can
  975.      work in DOS as long as he/she want. He/she can let the batch
  976.      file regain control by typing EXIT.
  977.  
  978.      Example:   BEN SHELL
  979.  
  980. T filename
  981.  
  982.      Runs all the instructions in the data file. This lets BEN
  983.      perform its jobs at a quicker speed.
  984.  
  985.      The data file is just a normal text file (ASCII format). It
  986.      can be created with any text editor, such as BENEDIT or the
  987.      EDLIN or the EDIT programs included with DOS. The format of
  988.      the text file is as follows:
  989.           
  990.      FUNCTIONS
  991.      FUNCTIONS
  992.      FUNCTIONS
  993.      .
  994.      .
  995.      .
  996.      FUNCTIONS
  997.      <End of File>
  998.           
  999.      The FUNCTIONS are exactly the same functions as those that
  1000.      are ran from the command line. For example:
  1001.  
  1002.      BEN T DATA.DAT
  1003.  
  1004.      where DATA.DAT contains:
  1005.           
  1006.      BOX 1 1 80 25 YELLOW GREEN 3
  1007.      PAUSE
  1008.      CURSOR OFF
  1009.      CLS BLUE
  1010.      <End of File>
  1011.  
  1012.      is exactly the same as doing this:
  1013.  
  1014.      BEN BOX 1 1 80 25 YELLOW GREEN 3
  1015.      BEN PAUSE
  1016.      BEN CURSOR OFF
  1017.      BEN CLS BLUE
  1018.      ;This is a comment line.
  1019.      ;Comment lines start with a ';'.
  1020.  
  1021.      Usually, you should only use the T function when you have a
  1022.      large quantity of functions that you wish to be processed by
  1023.      BEN.
  1024.          
  1025.      Examples: BEN T MYFILE.DAT
  1026.                BEN T C:\BATCH\INSTRUCT
  1027.  
  1028. ─────────────────────────────────────────────────────────────────
  1029. 2.3  BEN and environment variables
  1030.  
  1031. Several of BEN's functions (IE. GETKEY, GETKEYU, GETLINE,
  1032. GETLINEU, DIRDISP, DIRDISPA, EXTRACT, GETCD and GETVIDEO) return
  1033. their results using environment variables. After you use any one
  1034. of these functions, you can access the data that BEN returns by
  1035. calling the variable %BEN%. Just put %BEN% in your batch file
  1036. where you want the data to appear. For example, if you want to
  1037. get the user's name and re-display it, you can do the following:
  1038.  
  1039. BEN WRITE White Black Please~enter~your~name:~; GETLINE
  1040. BEN WRITE White Black Your~name~is~%BEN%!
  1041.  
  1042. If you stack several functions that return data via environment
  1043. variables, the first result would be stored into %BEN%, the
  1044. second result into %BEN2%, the third into %BEN3%, and so on. For
  1045. example, if you want to ask the user to enter two favorite colors
  1046. and re-display them, you can do the following:
  1047.  
  1048. BEN WRITE White Black Enter~your~two~favorite~colors:
  1049. BEN GETLINE GETLINE
  1050. BEN WRITE White Black So~they~are:~%BEN%~and~%BEN2%!
  1051.  
  1052. Note:     At the end of your batch file, you should make a call
  1053.           to BEN's CLEANUP function to erase all the variables
  1054.           that BEN have created (IE %BEN%, %BEN2%, %BEN3%, etc.)
  1055.  
  1056. ─────────────────────────────────────────────────────────────────
  1057. 3.1  BENEdit
  1058.  
  1059. BENEdit is a text editor that is included with your BEN package.
  1060. With BENEdit, you can create and edit batch files quickly and
  1061. easily.
  1062.  
  1063. BENEdit and BEN (the Batch ENhancer) work together to provide you
  1064. with the perfect environment to do all your batch works. Now, you
  1065. can use all your time to productive means by accessing all the
  1066. features of BEN inside BENEdit. Just select any BEN function
  1067. under the "BEN Functions" menu and answer a few questions.
  1068. BENEdit will instantly create the necessary batch program lines
  1069. for you. Creating batch files is never so easy before!
  1070.  
  1071. To run BENEdit, simply enter this command in DOS:
  1072.  
  1073. BENEDIT
  1074.  
  1075. If you want to open up a file when BENEdit loads, type BENEDIT
  1076. followed by the filename in DOS. For example, if you want to load
  1077. the file "QD.BAT", you can enter this command in DOS:
  1078.  
  1079. BENEDIT QD
  1080.  
  1081. BENEdit is so easy to use that further documentation is not
  1082. required. If you have a problem, press F1 in BENEdit to bring up
  1083. the context-sensitive help. Make sure that the file BENEDIT.HLP
  1084. is in the same directory as BENEDIT.EXE. Otherwise, the context-
  1085. sensitive help wouldn't work!
  1086.  
  1087. ─────────────────────────────────────────────────────────────────
  1088. 4.1  Legality information
  1089.  
  1090. Disclaimer:
  1091.  
  1092. Use of this program acknowledges this disclaimer of warranty:
  1093. "This program is supplied as is. SIMVIS SOFT disclaims all
  1094. warranties, expressed or implied, including, without limitation,
  1095. the warranties of merchantability and of fitness of this program
  1096. for any purpose. SIMVIS SOFT assumes no liability for damages
  1097. directly or consequential, which may result from the use of this
  1098. program."
  1099.           
  1100. Trademarks:
  1101.  
  1102. IBM and PC-DOS are trademarks of International Business Machines
  1103. Corporation. MS-DOS, EDLIN, WINDOWS and SMARTDRV are trademarks
  1104. of Microsoft Corporation. SPEEDISK is a trademark of Symantec.
  1105. SIM CITY is a trademark of Maxis. MAGIK MENU is a trademark of
  1106. SIMVIS SOFT.
  1107.  
  1108. Acknowledgments:
  1109.  
  1110. Doyal Belcher
  1111. Edwin Lee
  1112. Erik Lee
  1113. Jay Norwalk
  1114. Jonathan Shek
  1115.         
  1116. ───────────────────────────────────────────────────────────
  1117. 5.1  How to install ANSI.SYS
  1118.           
  1119. a.   Find ANSI.SYS from your DOS distribution disk and put it in
  1120.      the C:\ directory.
  1121.  
  1122. b.   Add the following line to your CONFIG.SYS (CONFIG.SYS is
  1123.      located in your C:\ directory) by using BENEdit, EDLIN or
  1124.      other text editors:
  1125.  
  1126.      DEVICE=C:\ANSI.SYS
  1127.  
  1128.      Note:     If you don't know where to add this line in
  1129.                CONFIG.SYS, just add it before the first line.
  1130.  
  1131. c.   Reboot your computer.
  1132.  
  1133. ─────────────────────────────────────────────────────────────────
  1134. 5.2  Hints and Tips:
  1135.  
  1136. -    If you run out of environment space in the middle of your
  1137.      batch file, you should use the SAVEPATH function. If this
  1138.      still doesn't work, increase your environment space by
  1139.      adding this line to your CONFIG.SYS:
  1140.  
  1141.      SHELL=C:\COMMAND.COM /P /E:4096
  1142.  
  1143.      If this still doesn't work, increase 4096 to a higher
  1144.      number.
  1145.  
  1146. -    Stack functions together to speed up access. For example,
  1147.      instead of using "BEN BEEP" followed by "BEN PAUSE", use
  1148.      "BEN BEEP PAUSE" or "BEN BEEP / PAUSE".
  1149.  
  1150.      Note:     Don't stack functions so much that a command line
  1151.                has more than 120 characters. DOS can only read
  1152.                about 120 characters at a time.
  1153.  
  1154. -    Using a disk optimizer on the disk (eg. SPEEDISK) containing
  1155.      BEN.EXE will speed up the operation of BEN.
  1156.  
  1157. -    Using a cache on your disk (eg. SMARTDRV, PC-CACHE) will
  1158.      speed up the operation of BEN.
  1159.  
  1160. -    In Windows, if you run a batch file that uses blinking
  1161.      characters, run it inside a full screen, since DOS windows
  1162.      cannot display blinking characters.
  1163.  
  1164. -    Use BENEdit to develop all your batch files. It's much
  1165.      easier to access the features of BEN from BENEdit than
  1166.      trying to memorize all of them.
  1167.  
  1168. -    In BENEdit, if you have a mouse, you can find out the
  1169.      coordinates of any screen positions by:
  1170.  
  1171.      a.   moving your mouse pointer to that position
  1172.  
  1173.      b.   reading the (X,Y) ordered pair at the right side of the
  1174.           status line.
  1175.  
  1176. -    If you are trying to develop a password program, you may
  1177.      discover that BEN doesn't function properly. For example,
  1178.      this may be the core of your batch file:
  1179.  
  1180.      BEN ECHO Please enter the password:
  1181.      BEN GETLINEU
  1182.      IF "%BEN%"=="COMPUTER RULES" GOTO ACCESS
  1183.      BEN ECHO You have entered the incorrect password. Bye.
  1184.      GOTO END
  1185.  
  1186.      :ACCESS
  1187.      BEN ECHO You have entered the correct password!
  1188.  
  1189.      :END
  1190.  
  1191.      Why doesn't this work? Because GETLINE and GETLINEU turns
  1192.      spaces into nulls (ASCII 255) before putting the result into
  1193.      %BEN%. You can work around this by using the null character
  1194.      when you test the password. Instead of the command:
  1195.  
  1196.      IF "%BEN%"=="COMPUTER RULES" GOTO ACCESS
  1197.                           ^
  1198.                         SPACE
  1199.  
  1200.      You should use the command:
  1201.  
  1202.      IF "%BEN%"=="COMPUTER RULES" GOTO ACCESS
  1203.                           ^
  1204.                          NULL
  1205.      
  1206.      You can enter a null character from any text editor (eg.
  1207.      BENEdit) by holding the ALT-key, pressing the keys "2", "5",
  1208.      "5" on the numeric keypad, and releasing the ALT-key.
  1209.  
  1210. -    To create blinking text, use a light background. For
  1211.      example, if you want to display a blinking yellow message on
  1212.      a blue background, use a foreground color of yellow and a
  1213.      background color of light blue:
  1214.  
  1215.      BEN WRITE YELLOW LIGHTBLUE Hello~World!
  1216.  
  1217. -    Files browsed with LIST can be zoomed, moved and sized by
  1218.      using the F5, CTRL-F5 and ALT-F5 keys respectively. MENU
  1219.      boxes can also be moved with the CTRL-F5 key.
  1220.  
  1221. -    If you use the BOX, FILLEDBOX, GROWFILLEDBOX or
  1222.      SHADFILLEDBOX functions, you can create good-looking borders
  1223.      by specifying an ASCII number as the borderstyle. For
  1224.      example, to create a box with a border made up of "√", enter
  1225.      the following command:
  1226.  
  1227.      BEN BOX 1 1 80 25 LIGHTGRAY BLUE 251
  1228.  
  1229. -    If you port some BASIC PLAY statements to BEN's PLAY
  1230.      commands, remember to turn all "<"'s to "["'s and all ">"'s
  1231.      to "]"'s. Or, put all the statements into a data file and
  1232.      use BEN's T function to access them.
  1233.  
  1234. -    Use the COLOR command before the LOCATE command.
  1235.  
  1236. -    Examining the BENDEMO files is a good way to learn BEN
  1237.      functions.
  1238.  
  1239. -    If you are a programmer, use BEN to develop INSTALL.BATs for
  1240.      your programs.
  1241.  
  1242. -    If you work in a network, use BEN to develop network batch
  1243.      utilities.
  1244.  
  1245. -    Register BEN and get the bonus BENMOUSE program. With
  1246.      BENMOUSE, you can make use of the mouse in your batch files.
  1247.  
  1248. ─────────────────────────────────────────────────────────────────
  1249. 5.3  Support, bug reports, comments, problems...
  1250.  
  1251. If you need technical support, feel that this manual is
  1252. inadequate, or uncover any bugs, please contact me:
  1253.  
  1254. Simon Lee
  1255.  
  1256. 7905 Bayview Ave.
  1257. Unit 1019
  1258. Thornhill  Ontario
  1259. Canada
  1260. L3T 7N3
  1261.  
  1262. Phone:    (416) 882-2514
  1263. Fax:      (416) 882-2527
  1264.  
  1265. Comments are extremely welcome.
  1266.  
  1267. ─────────────────────────────────────────────────────────────────
  1268. 6.1  Shareware Registration
  1269.  
  1270. BEN is NOT free software. BEN is NOT public domain software. BEN
  1271. is shareware: you are expected to pay a registration fee to the
  1272. author of this program if you find it useful. You are allowed to
  1273. use BEN for free within a trial period of 60 days. After 60 days,
  1274. if you continue to use BEN, you must register.
  1275.  
  1276. There are three editions of BEN available for registration:
  1277.  
  1278. A>   Personal Edition - $39
  1279.  
  1280.      With registration, you get the following:
  1281.      -    Complete BEN package on a disk:
  1282.  
  1283.           -    BEN.EXE with your specified registration name
  1284.                encoded into the code.
  1285.  
  1286.           -    BENMOUSE.EXE (a bonus version of BEN that has the
  1287.                ability to make use of mouses) with your specified
  1288.                registration name encoded into the code.
  1289.  
  1290.           -    BENEDIT.EXE with your specified registration name
  1291.                encoded into the code.
  1292.  
  1293.           -    All other BEN-related files.
  1294.  
  1295.      -    Next version of the complete BEN package on a disk free
  1296.           of charge.
  1297.  
  1298.      -    One printed manual that covers all aspects of BEN.
  1299.  
  1300.      -    Free technical support.
  1301.  
  1302. B>   Programmer's Edition - $99
  1303.  
  1304.      With registration, you get the following:
  1305.      -    Complete BEN package on a disk:
  1306.  
  1307.           -    BEN.EXE with your specified registration name
  1308.                encoded into the code.
  1309.  
  1310.           -    BENMOUSE.EXE (a bonus version of BEN that has the
  1311.                ability to make use of mouses) with your specified
  1312.                registration name encoded into the code.
  1313.  
  1314.           -    BENEDIT.EXE with your specified registration name
  1315.                encoded into the code.
  1316.  
  1317.           -    All other BEN-related files.
  1318.  
  1319.      -    Next version of the complete BEN package on a disk free
  1320.           of charge.
  1321.  
  1322.      -    One printed manual that covers all aspects of BEN.
  1323.  
  1324.      -    A distribution license. With this license, you are
  1325.           permitted to use BEN to create batch utilities that you
  1326.           can distribute, royalty-free.
  1327.  
  1328.      -    Free technical support.
  1329.  
  1330. C>   Business Edition - $199
  1331.  
  1332.      With registration, you get the following:
  1333.      -    Complete BEN package on a disk:
  1334.  
  1335.           -    BEN.EXE with your specified registration name
  1336.                encoded into the code.
  1337.  
  1338.           -    BENMOUSE.EXE (a bonus version of BEN that has the
  1339.                ability to make use of mouses) with your specified
  1340.                registration name encoded into the code.
  1341.  
  1342.           -    BENEDIT.EXE with your specified registration name
  1343.                encoded into the code.
  1344.  
  1345.           -    All other BEN-related files.
  1346.  
  1347.      -    All future versions of the complete BEN package on a
  1348.           disk free of charge.
  1349.  
  1350.      -    Five sets of printed manuals that covers all aspects of
  1351.           BEN.
  1352.  
  1353.      -    A site license for unlimited number of users on a LAN.
  1354.  
  1355.      -    A distribution license. With this license, you are
  1356.           permitted to use BEN to create batch utilities that you
  1357.           can distribute, royalty-free.
  1358.  
  1359.      -    Free technical support.
  1360.  
  1361. To order, please send $39, $99 or $199 (depending on which
  1362. edition you want) + $5 Postage/Handling to the following address:
  1363.  
  1364.                          Simon Lee
  1365.                          7905 Bayview Ave.
  1366.                          Unit 1019
  1367.                          Thornhill  Ontario
  1368.                          Canada
  1369.                          L3T 7N3
  1370.  
  1371. Notes:
  1372.  
  1373. -    Do specify the registration name (eg. Mr. Bill Smith, ABC
  1374.      Company).
  1375. -    Do specify the size of the disk you want (IE. 5.25" or 3.5")
  1376. -    Pay in cash or cheque.
  1377. -    Make all cheques payable to Simon Lee.
  1378. -    Pay in Canadian currency if ordered from Canada. Pay in US
  1379.      currency if ordered from US or other countries.
  1380.  
  1381. *    You can simplify the registration process by selecting the
  1382.      "Register" option under the system menu in BENEdit.
  1383.