home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-386-Vol-2of3.iso / b / benv302.zip / BEN.TXT < prev    next >
Text File  |  1992-09-23  |  52KB  |  1,423 lines

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