home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / progm / probat.zip / PROBAT.MAN < prev    next >
Text File  |  1989-03-09  |  66KB  |  1,612 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. *BoldFace on
  19.                       P R O - B A T   version I
  20.  
  21.  
  22.            Professional Batch File Development Environment
  23.  
  24.  
  25.             (C)Copyright September 11, 1988   Mark Tigges
  26.  
  27.                         All rights reserved.
  28. *BoldFace off
  29. *FormFeed
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.                             1. COPYRIGHT
  40.  
  41.  
  42.     This program is copyright (C) 1989 by Mark Tigges. All rights
  43.     reserved. Non-registered users are  granted a limited license
  44.     to use this product on a trial basis, and to copy the program
  45.     for trial use by others subject to the following limitations:
  46.  
  47.  
  48.        The program is distributed in unmodified form, complete
  49.        with documentation.
  50.  
  51.        No fee, charge or  other consideration  is requested or
  52.        accepted.
  53.  
  54.        The program is not  distributed in conjunction with any
  55.        other product.
  56.  
  57.  
  58.        If you intend to use  ProBat on a regular basis, please
  59.        register  and   show  your  support   for  the  author.
  60.        Regular commercial,  business  or  governmental  use by
  61.        non-registered users is prohibited.
  62. *FormFeed
  63.  
  64.                         1. Table of Contents
  65.  
  66.  
  67.         1  Copyright Statement                           1
  68.         2  Table of Contents                             2
  69.         3  Introduction                                  3
  70.            3.1 Features                                  5
  71.         4  The Pull-Down Menu                            5
  72.            4.1 Usage                                     5
  73.            4.2 Features                                  6
  74.            4.3 The File Menu                             6
  75.            4.4 The Screens Menu                          9
  76.            4.5 The Edit Menu                            10
  77.            4.6 The Menu Menu                            12
  78.            4.7 The Options Menu                         14
  79.         5  The ProBat Editor                            17
  80.            5.1 Commands                                 17
  81.                5.1.1 Editing Commands                   17
  82.                5.1.2 Find & Replace Commands            19
  83.                5.1.3 Block Commands                     19
  84.                5.1.4 Miscellaneous Commands             20
  85.            5.2 Editor Help                              21
  86.         6  The Prompt Editor                            22
  87.         7  The Screen Generator                         23
  88.            7.1 The Screen Generator Menu                23
  89.         8  The Supplementary Programs                   26
  90.            8.1 PBShow.EXE                               26
  91.            8.2 PBMenu.EXE                               26
  92.         9  ProBat Help                                  28
  93.         10 Running ProBat                               29
  94.            10.1 On a Hard Disk                          29
  95.            10.2 On a Floppy Disk                        30
  96.         11 The Distribution Diskette                    32
  97.            11.1 PrintMan.EXE . . . Usage                32
  98.         12 About Ansi.SYS                               33
  99.         13 Registering your copy                        34
  100. *FormFeed
  101. *BoldFace on
  102. *Wide
  103.      3. Introduction
  104. *BoldFace off
  105.  
  106.         ProBat is a program for the Ms-Dos running computer which
  107.     makes  the  process  of   creating  batch  files  simple  and
  108.     enjoyable. ProBat  uses a pull-down  menu system for  ease of
  109.     usage.
  110.  
  111.     3.1  Features
  112.  
  113.           - Easy to use pull-down menu system.
  114.  
  115.           - Full  fledged  command  driven  editor  designed  for
  116.           writing   batch   files,   that   features  quick  easy
  117.           interaction with the menu.
  118.  
  119.           - Distinguishes files  in  full pathnames  when user is
  120.           prompted for a file.
  121.  
  122.           - Complete  screen generator  capable of creating files
  123.           of screens that use  reverse video, variable intensity,
  124.           caps lock,  box drawing and variable  line types. These
  125.           screens  can then  be recalled  within a  batch file by
  126.           using a separate program called PBSHOW.
  127.  
  128.           - User  customizable menu  program called  PBMENU which
  129.           displays  your data  using handsome  graphics. Use this
  130.           program  on its  own or  from ProBat  whichever way  it
  131.           allows you ease of command over your hard disk.
  132.  
  133.           - A   printing   program   built   within  ProBat  that
  134.           highlights your labels in your  batch file. It also has
  135.           other printer control commands  at its disposal to help
  136.           you print  out text files with  bold print, wide print,
  137.           condensed  print  and  pica.  These  commands  must  be
  138.           manually inserted into the file to print.
  139.  
  140.           - A  menu for  controlling  DOS  functions on  the .SCR
  141.           files  with an  operating  shell  function. A  menu for
  142.           managing  your  .SCR  files,  and  accessing the screen
  143.           generator.  A file  for  managing  you batch  files and
  144.           accessing the  editor. And a  menu for controlling  the
  145.           customizable menu program PBMENU.
  146.  
  147.           - A very extensive Help system, can be used from a main
  148.           help menu, or touch sensitive from within the menu.
  149.  
  150.           When you start Pro-Bat  the main menu selections appear
  151.     on the  top line and  the program identifies  itself, showing
  152.     the version  number and copyright  message. It also  displays
  153.     the registration  number and name  of the owner  of the copy,
  154.     you should send  in that information if you  wish to register
  155.     the copy  in your own  name. A new  copy will be  sent to you
  156.     that displays your name and registration number instead.
  157.  
  158.     NOTE - There are a lot of  traps in this program that need to
  159.     be understood if your work  with ProBat will be enjoyable and
  160.     stay disaster  free. If you  read this manual  thoroughly you
  161.     shouldn't be confronted with too much of a problem and ProBat
  162.     will run smoothly and enjoyably.
  163.  
  164. *FormFeed
  165. *BoldFace on
  166. *Wide
  167.      4. The Pull-Down Menu
  168.  
  169.  
  170.         4.1 Usage
  171. *BoldFace off
  172.  
  173.         Use of the pull-down menu  system is easy. Across the top
  174.     of the screen is displayed the five options of the main menu,
  175.     these are descriptive headings for the options. By moving the
  176.     highlight bar which will at  first be positioned at the first
  177.     option "File"  you can select  the other four  options. These
  178.     are:  "Screen", "Edit",  "Menu" and  "Quit". This  is done by
  179.     pushing the right or left  arrow key, the highlight bar moves
  180.     in  the corresponding  direction.  Under  all of  the options
  181.     except  "Quit" there  is  another  menu, these  four vertical
  182.     menus are  the secondary menses.  They each have  a highlight
  183.     bar of  their own which moves  according to the corresponding
  184.     horizontal  arrow button  you push.  To select  an option you
  185.     simply press  RETURN. ProBat's ensuing  reaction is dependent
  186.     on where  the secondary menues highlight bar is position. For
  187.     instance if you are in the  "Edit" menu and the highlight bar
  188.     is on "Start  a new file" and you select  that ( hit RETURN )
  189.     then ProBat will display a  pop-up box prompting for the name
  190.     of the  batch file you  want to start.  If you have  the main
  191.     menues highlight bar  on "Quit"  and you  hit return then the
  192.     program  stops running  and you  return to  DOS. You can play
  193.     around  with  this  for  a  while  if  you  want;  if you get
  194.     somewhere  you don't want to be push  ESC, it will return you
  195.     to  where   you  were.  The  PullDown   menu  supports  quick
  196.     selection,  that  is  by  pressing  a  letter key ProBat will
  197.     automatically  open the  function  in  the present  menu that
  198.     corresponds to the letter you just pushed.
  199.  
  200.     Example:  In the "Menu" menu there are the following options:
  201.  
  202.                 Enter data for menu
  203.                 Run personalized menu
  204.                 Check menu batch file
  205.                 Print menu data
  206.  
  207.     In ProBat this  appears with the first letter  of each option
  208.     highlighted.
  209.     If you  pushed "C" or  "c" regardless of  where the selection
  210.     bar was in the "Menu" menu ProBat would select the
  211.  
  212.     "Check menu batch file"
  213.  
  214.     option and begin the corresponding process.
  215.  
  216. *BoldFace on
  217.         4.2 Features
  218. *BoldFace off
  219.  
  220.           - Full movement of command by usage of the arrow keys.
  221.  
  222.           - Home and  End pushing these  keys depending on  a few
  223.           factors will get you to either the "Options" menu (End)
  224.           of main menu or "File"  (Home) function of main menu or
  225.           Home  will  get  you  to  the  first  option of current
  226.           secondary menu and End will get you to the last.
  227.  
  228.           - F1 gets  you help on  using ProBat. CTRL-F1  gets you
  229.           help  on the  current secondary  menu. ALT-F1  gets you
  230.           help on the selected topic.
  231.  
  232.           - F10  shows  you  statistics  and  settings  you  have
  233.           employed.
  234.  
  235.           - Pushing  the key  'V' will  show you  the version  of
  236.           ProBat you are using.
  237.  
  238.           - Pushing  'CTRL-S' will put the  program in suspension
  239.           so that you can leave the computer for a long period of
  240.           time without having to worry about screen burn.
  241.  
  242.           - Pushing  'CTRL-R'  will  show  you  the  registration
  243.           number and owner of the copy.
  244.  
  245.           - Hitting  ESC  will  almost  always  get  you  out  of
  246.           mistaken selection. Or  if you are not in  one into the
  247.           editor editing the file that is loaded.
  248.  
  249.           - Pushing ALT-Q anywhere including in the editor except
  250.           for  a menu  option has  been selected,  will quit  the
  251.           program.
  252.  
  253.           - When there is no prompt in progress pressing ESC will
  254.           put you into  the editor so that you  can edit whatever
  255.           file has been loaded there. You will be returned to the
  256.           same  line you  were last  editing, however  the cursor
  257.           position,  and  therefor  the  lines  position  will be
  258.           shifted to a position as low on the screen as possible.
  259.  
  260. *BoldFace on
  261.         4.3 The File Menu
  262. *BoldFace off
  263.  
  264.           This  menu  enables  you  to  take  care  of menial DOS
  265.     functions from  within the program  and without using  the Os
  266.     Shell  function.  These  are  "Dir"  and  "ChDir" however for
  267.     anything else there is the  Os-Shell option. Whenever you are
  268.     asked for  the name of  a file when  you are in  this, or any
  269.     other menu for  instance you can use full  path names for the
  270.     file,  eg.  C:\BATCH\MYSCRNS.SCR,  ProBat   will  go  to  the
  271.     directory   C:\BATCH   before   trying   to   load  the  file
  272.     MYSCRNS.SCR.  With  the  screen   files  ProBat  reserves  no
  273.     convention for the file extensions, it does not care what you
  274.     call the file.  Therefore if you load "DBASE.EXE"  if you own
  275.     it and you  try and save a screen on  top of the program then
  276.     you are  out a $300 program  so watch out, don't  do anything
  277.     dumb.  It is  a wise  thing to  call all of your screen files
  278.     "????????.SCR" that way you know what your looking at.
  279.  
  280. *BoldFace on
  281.        Load
  282. *BoldFace off
  283.  
  284.     This  option simply  loads a   file for  use with  the screen
  285.     functions. With  this function the file  must have previously
  286.     existed, if you want to create  a new file to use for storing
  287.     screens  use the  New File  option. After  selection a pop-up
  288.     prompt box appears asking for the name of the file.
  289.  
  290. *BoldFace on
  291.        Pick
  292. *BoldFace off
  293.  
  294.     This option  is a very handy  utility. Every time you  load a
  295.     ".SCR" file ProBat  remembers it and puts it  in a list. Then
  296.     when you use the Pick function it shows you that list in menu
  297.     form and you pick the file that you want to re-load.
  298.  
  299. *BoldFace on
  300.        New file
  301. *BoldFace off
  302.  
  303.     This option is used when you want to start a file for storing
  304.     screens. A prompt box appears asking  for the name of the new
  305.     file  and then  if ProBat  does not  find conflict it creates
  306.     that file.  If ProBat does  find a conflict  (another file by
  307.     the same name on the same  directory) then it asks you if you
  308.     want  to  continue.  When  ProBat  asks  you  if  you want to
  309.     continue it  really means "Do you  want to sacrifice whatever
  310.     is  in that  already existing   file for  this one  you want?
  311.     Because  if you  say yes  the original  will be  deleted, and
  312.     replaced  with  this  one."  So   keep  that  in  mind.  Used
  313.     improperly  this  option  could  make  you  a very frustrated
  314.     person.
  315.  
  316. *BoldFace on
  317.        Write to
  318. *BoldFace off
  319.  
  320.     This option allows you to save the current screen file in use
  321.     to  another file  with a  different name.  This lets you make
  322.     copy of some screens which you  use often, even create a file
  323.     that lets you  archive all of the screens  that you have ever
  324.     used, or screens that you use frequently.
  325.  
  326. *BoldFace on
  327.        Directory
  328. *BoldFace off
  329.  
  330.     Selecting this option  will let you view the  contents of the
  331.     current directory in a pop-up window. You will be first asked
  332.     to enter a file mask, so  that you can view more specifically
  333.     those files that  you wish to see. If the  number of files in
  334.     the directory  are greater than can  be shown at once  in the
  335.     window then you will be abe to scroll through the files using
  336.     PgUp and PgDn.  The function is able to  display four screens
  337.     of files  in total. If more  files than that exist  (400+) in
  338.     the  directory  then  they  simply  will  be  left out. There
  339.     shouldn't be too many occasions when the number of files on a
  340.     directory exceeds ProBat's limits.
  341.  
  342.  
  343. *BoldFace on
  344.        Change dir
  345. *BoldFace off
  346.  
  347.     This option prompts you with a  pop-up box for a path name to
  348.     switch  the current  DOS directory   to. If  an error  occurs
  349.     then ProBat alerts you to that fact and lets you enter again.
  350.  
  351. *BoldFace on
  352.        Os shell
  353. *BoldFace off
  354.  
  355.     This option prompts you with a  pop-up box for a DOS command.
  356.     You can use  any valid DOS command that  you ordinarily would
  357.     use and MS-DOS will perform that command. If however you have
  358.     more than one command to give to DOS you need only hit return
  359.     without entering anything and ProBat  will put you in DOS for
  360.     as long  as you want.  When you want  to come back  to ProBat
  361.     just  type EXIT  and the  DOS prompt  and ProBat  will resume
  362.     where you left off.
  363.  
  364. *BoldFace on
  365.         Quit
  366. *BoldFace off
  367.  
  368.     This option closes your session down. It can also be accessed
  369.     by pressing ALT-Q  anywhere in Pro-Bat. If you  have opted to
  370.     generate Pick files then they are created now.
  371.  
  372. *BoldFace on
  373.         4.4 The Screens Menu
  374. *BoldFace off
  375.  
  376.         This menu lets you manage all of your screen files. Doing
  377.     the  tasks to  them that  need  to  be done.  Such as  adding
  378.     screens editing  screens deleting screen  and copying screens
  379.     between  files. If  you have  not loaded  a screen  file then
  380.     ProBat will  ask you what file  you want to use.  You can use
  381.     full path names to specify files.
  382.  
  383. *BoldFace on
  384.         Add a screen to the file
  385. *BoldFace off
  386.  
  387.     This functions  is the gateway to  the screen generator. When
  388.     you use this  function ProBat clears the screen  and lets you
  389.     and your artistic sense loose to create your screen, when you
  390.     are finished creating your  masterpiece then ProBat adds that
  391.     screen  to the  file when  you  push  F9, to  get out  of the
  392.     generator  push  F10.  For  more  info  go  into  the  screen
  393.     generator and hit  F1 and you will be  shown all the commands
  394.     for high and low intensity and reverse video, capital letters
  395.     and box drawing  characters. Or you can refer  to this manual
  396.     in the Screen  Generator section for more detail.
  397.  
  398. *BoldFace on
  399.        Edit an existing screen
  400. *BoldFace off
  401.  
  402.     You must use  this function when you want  to change a screen
  403.     that you have  already designed in the file.  ProBat will ask
  404.     for the number  of the screen and then let  you edit it if it
  405.     exists. When you  are finished press F9 and  ProBat saves the
  406.     screen in the same position that it got it from.
  407.  
  408. *BoldFace on
  409.        Delete a screen in the file
  410. *BoldFace off
  411.  
  412.     When you have a screen that  you no longer want then use this
  413.     function. However all that ProBat does is blank the slot. You
  414.     now have  a file that  has a hole.  You can now  re-edit that
  415.     screen. When you call it up there will be a blank screen.
  416.  
  417. *BoldFace on
  418.        View all screens in the file
  419. *BoldFace off
  420.  
  421.     This option shows you all of  the screens in the file in use.
  422.     When you  call it up it  starts on the first  screen and then
  423.     waits for you  to press a key - telling  ProBat that you want
  424.     to see the next screen.
  425.  
  426. *BoldFace on
  427.        Copy a screen between files
  428. *BoldFace off
  429.  
  430.     If you  have one screen  in a file  that you want  in another
  431.     file   as  well   then  use   this  option.   Use  is  pretty
  432.     straightforward  - ProBat  prompts for  the source  file, the
  433.     destination file and then the  source files screen number and
  434.     then it does  the job. If it can't find  the source file, the
  435.     destination  file or  the screen  in the  source file then it
  436.     doesn't work.  So there is  a lot of  stuff here that  can go
  437.     wrong, watch out!
  438.  
  439. *BoldFace on
  440.         4.5 The Edit Menu
  441. *BoldFace off
  442.  
  443.         This menu is the menu that  lets you do the heart of what
  444.     batch files need. They need to be edited and this menu is the
  445.     editor. When you are prompted for  the name of a file you may
  446.     enter full pathnames.  When you save that file  again it will
  447.     be saved in  its original directory. Upon loading a  file  if
  448.     you don't  specify a file  extension then ProBat  will assume
  449.     you mean ".Bat" and will add it to your file name. Please see
  450.     the  section of  this manual  for detailed  help on using the
  451.     editor.
  452.  
  453. *BoldFace on
  454.        Edit file in editor
  455. *BoldFace off
  456.  
  457.     This option does the same  thing as just hitting ESC anywhere
  458.     in the  main menu. It will  return you to the  editor so that
  459.     you  can continue  editing the  file that  is loaded into the
  460.     editor. If that file is NONAME.BAT  then a new file will have
  461.     been started.
  462.  
  463. *BoldFace on
  464.        Load a batch file for editing
  465. *BoldFace off
  466.  
  467.     The title  of this function  is a bit  deceiving because what
  468.     you load need  not be a batch file. In  fact you can load any
  469.     kind of  text file that you  want however the editor  is best
  470.     suited for  writing Batch files  or computer programs  or the
  471.     like.  Since it  doesn't have   the option  of word  wrap and
  472.     adjustable  margins. After  selection of  this option  ProBat
  473.     will respond by displaying a pop-up prompt box asking for the
  474.     name of the file that you  wish to edit. If ProBat can't find
  475.     the file in  the specified directory it will  tell you so. It
  476.     won't load an  empty file from this option.  You must use the
  477.     Start a new  batch file option from the same  menu. To edit a
  478.     file that as yet does not exist.
  479.  
  480. *BoldFace on
  481.        Pick batch file for editing
  482. *BoldFace off
  483.  
  484.     This option is very similar in  purpose to the Pick option of
  485.     the file  menu. ProBat remembers  all of the  recently loaded
  486.     batch files,  and will, when  this option is  chosen, display
  487.     them in  a menu, enabling you  to pick easily from  this menu
  488.     the  file you  want to  edit. After  selecting this  option a
  489.     pop-up box appears, sized depending on the files in the menu,
  490.     displaying  the files  that you  have recently  loaded. There
  491.     will also be  a highlight bar which you use  to pick the file
  492.     you want. Position  the highlight bar on the  chosen file and
  493.     hit Return. That file will then be loaded into the editor and
  494.     you will be place at the top of that file ready to edit.
  495.  
  496. *BoldFace on
  497.        Begin a new batch file
  498. *BoldFace off
  499.  
  500.     Again the  file to start need  not be a batch  file it can be
  501.     any file,  however if you  don't specify an  extension ProBat
  502.     will  assume .BAT.  This option  differs from  the above only
  503.     that  it cannot  load a  file that  already has  text in  it.
  504.     Therefore if  at the prompt  you specify a  file that already
  505.     exists ProBat  will question your  intention. If you  confirm
  506.     your  entry ProBat  will ERASE  THE ORIGINAL  and give  you a
  507.     blank file where the first text  can be entered. So for God's
  508.     sake be careful!  I hate it when my program  is an outlet for
  509.     inexperienced user's frustration,  especially one that didn't
  510.     read the manual  correctly. If you do use  this option to try
  511.     and  load  a  file  that  already  exists,  and answer YES to
  512.     ProBat's question,  that you do  want to continue,  then your
  513.     file will be erased.
  514.  
  515. *BoldFace on
  516.         Delete a batch file
  517. *BoldFace off
  518.  
  519.     Once again the  file need not be a batch  file however if you
  520.     don't specify an extension then  ProBat adds .BAT by default.
  521.     This  option  does  not  confirm  your  entry from its pop-up
  522.     prompt box  before it deletes  the file. If  for instance you
  523.     accidentally give the wrong path or you enter .BAT instead of
  524.     .BAK you will be very sorry.  So before pushing the ENTER key
  525.     make  sure that  you have  entered the  right file. If ProBat
  526.     can't find the  file then it obviously can't  delete it so it
  527.     will let you know if you make a mistake.
  528.  
  529. *BoldFace on
  530.        Run a batch file
  531. *BoldFace off
  532.  
  533.     The restraints on the type  of file that this option requires
  534.     are a little more stringent than  the others in the menu. The
  535.     type of file  that you specify in the  pop-up prompt box must
  536.     be an executable  file ie. ?.EXE, ?.BAT, or  ?.COM. If ProBat
  537.     can't find  the file then  it will let  you know, because  it
  538.     can't run it if it can't find it.
  539.  
  540. *BoldFace on
  541.        Print a batch file
  542. *BoldFace off
  543.  
  544.     This option will print all of your batch files for you. If it
  545.     finds a  label in  your batch file then it will  highlight it
  546.     with bold  print, making them stand out from all of the other
  547.     text on the page. It will  stop for page breaks, and give the
  548.     page number  and file name  at the bottom  of each page,  and
  549.     will also automatically insert a margin of five spaces at the
  550.     beginning of  each line. If your  printer supports compressed
  551.     mode and you select it to  print your batch files then ProBat
  552.     will not be able to bold type your labels.
  553.  
  554. *BoldFace on
  555.        Save file in editor
  556. *BoldFace off
  557.  
  558.     This option lets you save the loaded text file to the current
  559.     drive and directory.  If you don't want to  enter the editor,
  560.     but you  do want to save  the file then this  is a very handy
  561.     option  to use.  It will  tell you  wether or  not you should
  562.     bother saving. If  the file has been modified  since the last
  563.     save then the option will be displayed like this:
  564. *BoldFace on
  565.  
  566.     Save file in editor      SAVE
  567.  
  568. *BoldFace off
  569.     When you see the SAVE flag you know you should save the file,
  570.     if there  is no SAVE  flag there then  the file has  not been
  571.     modified.  If you  select the  option without  the flag there
  572.     Pro-Bat  will  ignore  you  assume  incompetence  and  not do
  573.     anything.
  574.  
  575. *BoldFace on
  576.         4.6 The Menu Menu
  577. *BoldFace off
  578.  
  579.         This menu takes care of all of the chores that need to be
  580.     done concerning  the custom menu system.  Such as the editing
  581.     of your menu - the keys  and items. And making sure that your
  582.     CustMenu.Bat file  will work correctly. You  can even run the
  583.     program to check it from within Pro-Bat.
  584.  
  585. *BoldFace on
  586.        Edit menu data
  587. *BoldFace off
  588.  
  589.     This option is the one you use to create the PBMenu.DTA file.
  590.     That file contains  the names of your items  and whatever you
  591.     want to use for your keys. I suggest using succesive numbers.
  592.     Instead of  letters in some  configuration because the  third
  593.     option of this menu won't  work properly otherwise, and it is
  594.     very useful. You are shown a  table of empty spaces after you
  595.     select this option. The empty spaces are what you fill in, to
  596.     define your menu.  The title refers to the  name of the menu.
  597.     When you have finished editing push  ESC to save the data. If
  598.     you edit  one space and then  push ESC to save  without first
  599.     pushing RETURN then that one  space won't be saved because it
  600.     wasn't first entered into menu.
  601.  
  602. *BoldFace on
  603.        Run custom menu
  604. *BoldFace off
  605.  
  606.     This option simply runs the  PBMenu.exe file. The exact thing
  607.     as  type PBMenu  at the  DOS prompt.  If the  files that  the
  608.     program needs  aren't on the  current dos directory  then the
  609.     program won't run you have to  make sure that these files are
  610.     all located on the current directory everytime the menu runs.
  611.     That includes after you have selected  a item and the menu is
  612.     running again.
  613.  
  614. *BoldFace on
  615.        Check batch file
  616. *BoldFace off
  617.  
  618.     This  option   only  checks  the   Batch  file  custmenu.bat.
  619.     Therefore  it needs  to read  the data  in PBMenu.dta  first,
  620.     therefore  both of  these files   have to  be located  on the
  621.     current directory  for this option  to work. What  it does is
  622.     look  at all  of your  labels to  see if  there are the right
  623.     number of numeric labels. ( If you are unfamiliar with labels
  624.     please refer  to your Dos  manuals. Books such  as Running Ms
  625.     Dos by Van Wolverton are also very helpful.) Therefore if you
  626.     don't use numeric  labels then this option won't  work. It is
  627.     your choice and the burden is yours to check you CustMenu.bat
  628.     file if you use a different method.
  629.  
  630. *BoldFace on
  631.        Print menu data
  632. *BoldFace off
  633.  
  634.     For convenient  reference this option will  print for you the
  635.     data that is in your menu. This is so that you have something
  636.     to refer to when you are creating your CUSTMENU.BAT file.
  637.  
  638.  
  639. *BoldFace on
  640.        Menu text height
  641. *BoldFace off
  642.  
  643.     This option allows the user the affordability of changing the
  644.     relative  height  of  the  text  displayed  in  the menu. For
  645.     graphic formats reasons the height of the text is interpreted
  646.     differently  by different  systems. The  higher resolution of
  647.     some  systems  displays  the  Fonts  larger  then  a  smaller
  648.     resolution. For  this reason I  have included this  option. I
  649.     wrote  the code  on a  hercules monochrome  card and a height
  650.     value of 2  is optimum therefore it is the  default. On a CGA
  651.     or AT&T it is a different  value. Experiment and come up with
  652.     the value that you like the best.
  653.  
  654. *BoldFace on
  655.         4.7 The Options menu
  656. *BoldFace off
  657.  
  658.     This menu lets you customize Pro-Bat to your tastes. Creating
  659.     an environment  that lets you  work to an  optimum level. You
  660.     have the choice of  turning on/off the sounds, editor window,
  661.     mode pick file saves, and changing the colors.
  662.  
  663. *BoldFace on
  664.        Editor window mode
  665. *BoldFace off
  666.  
  667.     This option is a toggle on/off option, its value is displayed
  668.     as ON or  OFF at the right of the  selection bar. If the mode
  669.     is ON then  the editor is displayed inside  a thin frame, the
  670.     full pathname  of the file  being edited is  displayed at the
  671.     lower left  corner of the window.  If the option is  OFF then
  672.     there is  no frame around  the editor and  the user gets  the
  673.     full amount of room possible to edit the file. There is not a
  674.     large sacrifice of room when the editor window is on.
  675.  
  676. *BoldFace on
  677.        Auto-backup
  678. *BoldFace off
  679.  
  680.     This option is a toggle on/off option, its value is displayed
  681.     as ON or  OFF at the right of the  selection bar. If the mode
  682.     is ON the  editor will create a backup copy  of the file when
  683.     ever it is  saved, naming that copy with  the extension .BAK.
  684.     If the  mode is OFF  this service is  not done. it  is highly
  685.     recomended that you leave this mode on.
  686.  
  687. *BoldFace on
  688.        Generate pick file
  689. *BoldFace off
  690.  
  691.     This option is a toggle on/off option, its value is displayed
  692.     as ON or  OFF at the right of the  selection bar. If the mode
  693.     is on  then when you  quit the current  run of ProBat  a file
  694.     named PROBAT.PCK is saved. It is a list of all the files that
  695.     were on  the pick sequences. If  the mode is off  then ProBat
  696.     will not save  this file. ProBat will read  a PROBAT.PCK file
  697.     and use it regardless of the value of this option.
  698.  
  699. *BoldFace on
  700.        Warning sound
  701. *BoldFace off
  702.  
  703.     This option is a toggle on/off option, its value is displayed
  704.     as ON or OFF at the  right of the selection bar. Whenever you
  705.     make  a  mistake  for  instance  naming  a false directory or
  706.     filename, ProBat  will make an obnoxious  noise to alert your
  707.     attention to your mistake. If you  do not like this noise, or
  708.     you have a hangover you can  turn it off, in effect silencing
  709.     ProBat.
  710.  
  711. *BoldFace on
  712.        Colors
  713. *BoldFace off
  714.  
  715.     This option  will let you  create the visual  effect that you
  716.     enjoy the best. After selecting the option a menu and another
  717.     box  is displayed.  When you  choose an  option from the main
  718.     menu, a sample  of the choice is displayed  in the other box.
  719.     For instance say you chose :
  720.  
  721. *BoldFace on
  722.                   Main menu normal text
  723. *BoldFace off
  724.  
  725.     a portion of the main menu  would be displayed, you then have
  726.     the  power  to  change  the  color  in  which  this  item  is
  727.     displayed. Change  the foreground color  by pushing 'f',  the
  728.     background by pushing 'b'. If you use the upper case versions
  729.     of these letters then the numeric values corresponding to the
  730.     colors will  decrease, as oppose  to increase with  the lower
  731.     case. When you  use Pro-Bat from there on  the colors will be
  732.     displayed as to your choice.
  733.  
  734.     The method of  manipulating the colors is simple.  In the CGA
  735.     color  spectrum (the  one that  ProBat assumes)  there are 15
  736.     colors. As the numeric value corresponding to the item you've
  737.     selected change  ProBat selects the  numbered color value  in
  738.     the  CGA  spectrum.  This  applies  both  for  ForeGround and
  739.     BackGround aspects.
  740.  
  741. *BoldFace on
  742.        Save set-up
  743. *BoldFace off
  744.  
  745.     This option lets you  save the environment configuration that
  746.     you have created to a  file called PROBAT.DTA. When you start
  747.     Pro-Bat  with a  file by  this name  on the current directory
  748.     then Pro-Bat will  read this file and use  the settings in it
  749.     instead  of the  default set.  This makes  for convience, you
  750.     don't have to change the environment to your needs every time
  751.     you use  the program. If you  have several users of  the same
  752.     copy, they  might not all like  the same configuration. These
  753.     people could all have a  floppy of their own containing there
  754.     version  of PROBAT.DTA  on it.  Then these  people each  load
  755.     probat like this :
  756.  
  757. *BoldFace on
  758.                 A:\>c:\bat\probat
  759. *BoldFace off
  760.  
  761.     this way  Pro-Bat will look  on A:\ for  the PROBAT.DTA file.
  762.     Remember  that  when  you  change  the  configuration Pro-Bat
  763.     doesn't automatically save it. You might be mad next time you
  764.     run Pro-Bat if your configuration doesn't appear. So save it.
  765. *FormFeed
  766. *BoldFace on
  767. *Wide
  768.      5. The Pro-Bat Editor
  769. *BoldFace off
  770.  
  771.        To start  the editor refer to  the various functions under
  772.     the Edit menu section.
  773.  
  774.        To enter text  into the editor you use  basically the same
  775.     technique that you  employ in using a type  writer. There are
  776.     however many important differences.
  777.  
  778.        The  cursor always  indicates where  the new  text will be
  779.     entered, and  you can  move the  cursor in a  number  of ways
  780.     (the commands  to do so are described later). You can correct
  781.     mistakes quickly  and easily using  the delete commands.  You
  782.     can  copy and  move text   with the  block commands.  You can
  783.     locate a particular string of text with the find command, and
  784.     optionally   replace  it   with  another   string  using  the
  785.     Find-Replace command.  And in most  cases, you can  even undo
  786.     your last few changes with the restore line or undo commands.
  787.     Each  of  these  commands  (  and  there  are  many more ) is
  788.     described in  the sections that  follow. However for  a quick
  789.     glance at  all the commands and  their respective keystrokes,
  790.     refer  to,  the  quick-reference   tables  available  in  the
  791.     editor's help section - hit F1 to obtain help in the editor.
  792.  
  793. *BoldFace on
  794.      5.1 Editor Commands
  795. *BoldFace off
  796.  
  797.     NOTE - When you see CTRL-? it means that the CTRL key is held
  798.     down while ? is pressed.
  799.  
  800. *BoldFace on
  801.      5.1.1 Basic Editing Commands
  802. *BoldFace off
  803.  
  804.     LEFT ARROW or CTRL-S -  CHARACTER LEFT. Moves the cursor left
  805.     one column.  This command does  not work across  line breaks;
  806.     when the cursor reaches column 1, it stops.
  807.  
  808.     RIGHT ARROW or CTRL-D - CHARACTER RIGHT. Moves the cursor one
  809.     character  to the  right. This  command does  not work across
  810.     line breaks;  when the cursor reaches  the right-hand edge of
  811.     the text  window, the text starts  scrolling horizontal until
  812.     it reaches the extreme right edge of the line ( column 999 ),
  813.     where it stops.
  814.  
  815.     CTRL-LEFT ARROW  or CTRL-A -  WORD LEFT. Moves  the cursor to
  816.     the  beginning of  the word  to the  left. This command works
  817.     across line breaks.
  818.  
  819.     CTRL-RIGHT ARROW or  CTRL-F - WORD RIGHT. Move  the cursor to
  820.     the beginning  of the word  to the right.  This command works
  821.     across line breaks.
  822.  
  823.     UP ARROW  or CTRL-E - LINE  UP. Moves the cursor  to the line
  824.     above. If the cursor is on the line of the window, the window
  825.     scrolls down one line (if there is more text to scroll).
  826.  
  827.     DOWN ARROW  or CTRL-X -  LINE DOWN. Moves  the cursor to  the
  828.     line below. If the cursor is  on the last line of the window,
  829.     the window  scrolls down one line  (if there is more  text to
  830.     scroll).
  831.  
  832.     PGUP or CTRL-R  - PAGE UP. Moves the cursor  one page up with
  833.     an overlap of one line.
  834.  
  835.     PGDN or  CTRL-C - PAGE DOWN.  Moves the cursor one  page down
  836.     with an overlap of one line.
  837.  
  838.     CTRL-K 0..3 - SET MARKER. Sets one of the ten text markers at
  839.     the current  position of the  cursor. CTRL-K 0  sets marker 0
  840.     and CTRL-K 1 sets marker 1 . . .
  841.  
  842.     CTRL-Q 0..3 -  GOTO MARKER. Goes to the  specified marker. If
  843.     the  specified marker  has not  been set  the cursor does not
  844.     move.
  845.  
  846.     CTRL-Q-P - PREVIOUS CURSOR POSITION.  Moves the cursor to its
  847.     previous position. This works after  a Find or a Find/Replace
  848.     function has been carried out.
  849.  
  850.     DEL  or  CTRL-G  -  DELETE  CURRENT  CHARACTER.  Deletes  the
  851.     character which contains the cursor the cursor does not move.
  852.  
  853.     BACKSPACE or  CTRL-H - DELETE CHARACTER  TO THE LEFT. Deletes
  854.     the character to the left of  the cursor and moves the cursor
  855.     right.
  856.  
  857.     CTRL-Y -  DELETE LINE. Deletes the  entire line that contains
  858.     the cursor.
  859.  
  860.     CTRL-Q-Y  -  DELETE  TO  THE  END  OF  LINE. Deletes from the
  861.     character position to the end of the line.
  862.  
  863.     CTRL-T - DELETE WORD. Deletes the text up to the beginning of
  864.     the word to the right of the cursor.
  865.  
  866.     TAB -  INDENT. Indents the  cursor to the  first character of
  867.     the previous line that is past the position of the cursor.
  868.  
  869. *BoldFace on
  870.      5.1.2 Find & Replace Commands
  871. *BoldFace off
  872.  
  873.     B -  Searches  backwards  from  the  current  cursor position
  874.     toward the beginning of the file.
  875.  
  876.     G -  Searches globally.  The entire  file is  scanned for the
  877.     search string regardless of the current cursor position.
  878.  
  879.     L  - Searches only the marked block.
  880.  
  881.     U - Ignores case configuration.
  882.  
  883.     W -  Searches  for  whole  words  only,  skips  out  matching
  884.     patterns embedded in other words.
  885.  
  886.     n - n may be any number. Find the nth occurence of the search
  887.     string counted from the current cursor position.
  888.  
  889.     CTRL-Q-F  - FIND.  Lets you  search for  string of  up to  67
  890.     characters. When you call this  command you will be asked for
  891.     a search string and then options;  you can include any of the
  892.     above options in any combinations.
  893.  
  894.     CTRL-Q-A  - FIND/REPLACE.  Lets you  search for  a string the
  895.     same  way as  above however  it replaces  that string  with a
  896.     specified replace  string. There is  one more option  that is
  897.     available for  searching : N this  lets you skip confirmation
  898.     to replace every match.
  899.  
  900.     CTRL-L -  REPEAT LAST SEARCH.  This command will  do the last
  901.     search that  you did again  allowing you to  quickly find the
  902.     next occurence  of the search  string without reentering  the
  903.     specs.
  904.  
  905. *BoldFace on
  906.      5.1.3 Block Commands
  907. *BoldFace off
  908.  
  909.     F7 or CTRL-K-B - BEGIN BLOCK. Marks the beginning of a block.
  910.     The block  is not visible unless  an end of block  marker has
  911.     been set. The block is shown in highlighted text.
  912.  
  913.     F8 or  CTRL-K-K - END BLOCK.  Marks the end of  a block. Like
  914.     the  begin-block command  the block  does not  become visible
  915.     unless a start of block marker has been set.
  916.  
  917.     CTRL-K-C  -  COPY  BLOCK.  Creates  a  copy  of  a marked and
  918.     displayed block at the  current cursor position. The original
  919.     block is  left unchanged, and  the markers are  placed around
  920.     the new copy of the block.
  921.  
  922.     CTRL-K-V  - MOVE  BLOCK. Moves  a marked  and displayed block
  923.     from  its  current  position  to  the  cursor's position. The
  924.     markers remain around the block at its new position.
  925.  
  926.     CTRL-K-Y - DELETE BLOCK. Delete a marked and displayed block.
  927.     Although  the Undo  last deletion  command (  ctrl-Q-U )  can
  928.     usually  restore portions  of an  accidentally deleted block,
  929.     there  is  no  command  to  restore  a  deleted  block in its
  930.     entirety so use this command with care.
  931.  
  932.     CTRL-K-H - HIDE BLOCK. Toggles  off and on the visual marking
  933.     of a block.
  934.  
  935.     CTRL-K-T - MARK WORD. Marks word contained by the cursor as a
  936.     block.
  937.  
  938.     CTRL-K-R - READ  BLOCK FROM FILE. Reads a  file into the text
  939.     at the cursor's current position exactly as if it were copied
  940.     from another part of the text.  You are prompted for the path
  941.     and name of the file.
  942.  
  943.     CTRL-K-W -  WRITE BLOCK TO FILE.  Writes the currently marked
  944.     block to a file. You are  first prompted for a file name, and
  945.     then ProBat writes the block to  disk under that name with no
  946.     change to its text.
  947.  
  948. *BoldFace on
  949.      5.1.4 Miscellaneous Commands
  950. *BoldFace off
  951.  
  952.     CTRL-U  -  ABORT.  Halts   whatever  command  is  already  in
  953.     progress.
  954.  
  955.     CTRL-K-S -  SAVE AND EDIT.  Simply save the  current file and
  956.     continue editing.
  957.  
  958.     CTRL-Q-L -  RESTORE LINE. Will  undo any changes  done to the
  959.     current line  since you entered  that line. It  does not work
  960.     after you left that line anymore.
  961.  
  962.     CTRL-Q-U -  UNDO DELETION. Restores whole  lines deleted with
  963.     the delete line command (CTRL-Y)  or the Delete block command
  964.     ( ctrl-K-Y ). It does not restore single characters or words.
  965.  
  966.     INS  or  CTRL-V  -  TOGGLE  INSERT  MODE.  Selects  Insert or
  967.     Overwrite mode.  The cursor's size is  an indication of which
  968.     mode you are in.
  969.  
  970.     CTRL-Q-I  - TOGGLE  AUTOINDENT.  When  autoindent mode  is in
  971.     effect, the new line command ( ENTER ) will return the cursor
  972.     to the first character of the previous line.
  973.  
  974.     F10 - EXIT  EDITOR. This command will return  you to the main
  975.     menu. However  it does not  save the file,  so you must  keep
  976.     that in mind.
  977.  
  978. *BoldFace on
  979.      5.2 Editor Help
  980. *BoldFace off
  981.  
  982.     The editor's  help system isn't  very extensive. All  that is
  983.     included  are tables  of commands.  When you  push F1 you are
  984.     faced with a  message and a menu from which  you can select a
  985.     group of commands to choose to get further help.
  986. *FormFeed
  987. *BoldFace on
  988. *Wide
  989.      6. The Prompt Editor
  990. *BoldFace off
  991.  
  992.         The line editor which is used  for all of the prompts has
  993.     itself  many commands  to alter   and edit  text. If  you are
  994.     presented with a response already you can enter that response
  995.     by hitting <return>.
  996.  
  997.  
  998.     Home : This moves the cursor to the beginning of your line.
  999.  
  1000.     End : This moves the cursor to the end of your line.
  1001.  
  1002.     Insert :  This will toggle  the insert specification.  If you
  1003.     have it  on then hitting  the insert key  will call overwrite
  1004.     and vice versa.
  1005.  
  1006.     Del  : This  key will  delete the  Digit that  the cursor  is
  1007.     centered on.
  1008.  
  1009.     BackSpace : This key moves  the cursor backwards one space at
  1010.     a time while deleting every character in its path.
  1011.  
  1012.     ALT-B :  This key will  automatically enter the  path name of
  1013.     the file in the editor to the prompt editor.
  1014.  
  1015.     ALT-S :  This key will  automatically enter the  path name of
  1016.     the screen file that is in current use.
  1017.  
  1018.     Horizontal  arrow  keys  :  These  keys  will  move, in their
  1019.     respective direction, the cursor one space.
  1020.  
  1021.     Vertical  arrow  keys  :  These   keys  are  treated  as  the
  1022.     equivalent of <RETURN>.
  1023. *FormFeed
  1024. *BoldFace on
  1025. *Wide
  1026.       7. The Screen Generator
  1027. *BoldFace off
  1028.  
  1029.         The screen  generator is a low  level word processor that
  1030.     allows  you  to  type  anything  on  the  screen in any video
  1031.     attribute, including  boxes with either  of the two  IBM line
  1032.     modes (single  and double). The  generator does not  have any
  1033.     idea what you are typing in. After you have typed the key the
  1034.     screen generator forgets what it  was. Therefore if you go to
  1035.     the same place  again the generator won't know  what is there
  1036.     so it ignores  it. If you type a character  on top of another
  1037.     character the original character will be lost. Arrow keys are
  1038.     not  included as  characters, if  you hit  an arrow  key when
  1039.     there  is  another  character  at  the  cursor  the  original
  1040.     character will still be there.
  1041.  
  1042.     If you are editing a screen  by having used the Edit existing
  1043.     screen or the Add a new  screen option and are finished doing
  1044.     so, you will  want to save it. Pushing F10  does not save the
  1045.     screen before giving  you back ProBat, you must  first use F9
  1046.     or your screen will be lost. Be careful, after much thought I
  1047.     concluded that this was the best way because this way you can
  1048.     edit  -  save  and   continue  editing  without  leaving  the
  1049.     generator  or  the  screen.  In  short  save  before  you are
  1050.     finished or mid  way in your editing job  in case an accident
  1051.     occurs.
  1052.  
  1053.     The theory  upon how the screen  generator is integrated into
  1054.     the rest  of Pro-Bat is this.  You work on screens  in a file
  1055.     environment,  each screen  being a  separate record  withen a
  1056.     file  that stores  your screens.  You can  change a screen at
  1057.     your whim after you have created and saved it once, just like
  1058.     a word processor. However  the first screen in the  file is a
  1059.     special screen. It is numbered  0 and is called the template.
  1060.     Presumably  when you  store screens  in a  file those screens
  1061.     must somehow be related. For instance in the file EXAMPLE.SCR
  1062.     all  of those  screens are   for display  in the  sample menu
  1063.     system. We can assume that  on some circumstances the screens
  1064.     in the  file may look  very familiar to  each other. This  is
  1065.     where the template comes in. To  work on a series of screens,
  1066.     all you have to do is load the template before you start work
  1067.     on  each screen.  Then doing  whatever is  unique about  each
  1068.     particular screen.
  1069.  
  1070. *BoldFace on
  1071.      7.1 The Screen Generator Menu
  1072. *BoldFace off
  1073.  
  1074.     The  screen  generator  has  several  functions  that  can be
  1075.     accessed via a  menu. This menu is called  up by pressing F10
  1076.     when  you are  in the  screen generator.  Those functions are
  1077.     listed below.
  1078.  
  1079. *BoldFace on
  1080.         Change foreground color
  1081. *BoldFace off
  1082.  
  1083.     Choosing  this option  calls up  a menu  of the  16 different
  1084.     colors possible in a CGA system, choosing one of those colors
  1085.     changes  the color  with which  the foreground  of subsequent
  1086.     text is displayed.
  1087.  
  1088. *BoldFace on
  1089.         Change background color
  1090. *BoldFace off
  1091.  
  1092.     This option  is identical to  the above only  that you choose
  1093.     the background color.
  1094.  
  1095. *BoldFace on
  1096.         Display color table
  1097. *BoldFace off
  1098.  
  1099.     This  option will  merely bring  up a  reference table of the
  1100.     numerical values of the colors in the CGA spectrum.
  1101.  
  1102. *BoldFace on
  1103.         Load the template
  1104. *BoldFace off
  1105.  
  1106.     This  option loads  screen no  0 into  the present screen and
  1107.     allows you  to edit it.  The editing you  do does nothing  to
  1108.     change the  template screen. if  you have worked  on a screen
  1109.     and then load the template  the work you have done previously
  1110.     will be lost.
  1111.  
  1112. *BoldFace on
  1113.         Save this screen
  1114. *BoldFace off
  1115.  
  1116.     This option  will save the screen  you are working on  in the
  1117.     correct position in the file.
  1118.  
  1119. *BoldFace on
  1120.         Abandon this screen
  1121. *BoldFace off
  1122.  
  1123.     This  will merely  give you   a clear  slate by  clearing the
  1124.     screen.  If you  saved your  previous work  however then that
  1125.     work still exists on the disk.
  1126.  
  1127. *BoldFace on
  1128.         Toggle box mode
  1129. *BoldFace off
  1130.  
  1131.     When on box mode allows  you to display boxes. Selecting this
  1132.     mode changes the  value of box mode. If it  was on it will be
  1133.     turned off and vice versa. To display a box use the following
  1134.     keys when in box mode:
  1135.  
  1136.        w rrrrr e      ie. W : Top left corner
  1137.        f       f          R : Horizontal line
  1138.        f       f          E : Top right corner
  1139.        s rrrrr d          F : Vertical line
  1140.                           D : Bottom right corner
  1141.                           S : Bottom left corner
  1142.  
  1143. *BoldFace on
  1144.         Toggle box style
  1145. *BoldFace off
  1146.  
  1147.     This  changes  the  line   mode  between  single  and  double
  1148.     regardless of the value of the Box drawing mode.
  1149.  
  1150. *BoldFace on
  1151.         Display statistics
  1152. *BoldFace off
  1153.  
  1154.     Selecting this  option will display  a window containing  the
  1155.     following information:
  1156.  
  1157.     -Filename
  1158.     -Screen no.
  1159.     -Value of Box drawing mode
  1160.     -Type of Box style enabled
  1161.     -Foreground color
  1162.     -Background color
  1163.     -X position
  1164.     -Y position
  1165.  
  1166. *BoldFace on
  1167.         Quit screen generator
  1168. *BoldFace off
  1169.  
  1170.     This  function will  allow you  to exit  the screen generator
  1171.     back to the point where you left ProBat. It will not check to
  1172.     see if  you have saved  your screen, so  if you need  to make
  1173.     sure you do.
  1174. *FormFeed
  1175. *BoldFace on
  1176. *Wide
  1177.   8. The Supplementary Programs
  1178. *BoldFace off
  1179.  
  1180.         On the distribution disk  there are two PB????.EXE files.
  1181.     These two files are not  cardinal to ProBat's running however
  1182.     if you  want to take full  advantage of ProBat's capabilities
  1183.     then you will be using these programs. There are two of them:
  1184.     PBSHOW.EXE and  PBMENU.EXE. Each has  their own use  and each
  1185.     depend  on ProBat  to produce   the things  they need  to run
  1186.     however once they have them they run totally on their own.
  1187.  
  1188.     8.1 PBSHOW.EXE
  1189.  
  1190.     This file  is used in conjunction  with the .SCR files  it is
  1191.     your  ticket to  displaying the  screens you  have created in
  1192.     ProBat from within a batch file.
  1193.  
  1194.     Usage : PBSHOW %1 %2 where %1 & %2 are parameters you pass to
  1195.     the program.
  1196.  
  1197.              %1 - The number of screen in the  file you want
  1198.                   displayed.  The  first screen  is  #0, the
  1199.                   second  screen is #1 etc.
  1200.              %2 - The file  that the  screen  is located in.
  1201.                   ie MYSCRNS.SCR.  Therefore  typing  PBSHOW
  1202.                   0  MYSCRNS.SCR   will  display  the  first
  1203.                   screen in the file MYSCRNS.SCR.
  1204.  
  1205.     8.2 PBMENU.EXE
  1206.  
  1207.     This  file is  used to  display your  customized menu. If you
  1208.     haven't defined one  using the Enter menu data  option of the
  1209.     Menu menu then  it won't work, otherwise it  will display the
  1210.     Keys and Items that you defined.
  1211.  
  1212.     Usage : PBMENU. All you have  to type is the files name. From
  1213.     there  the  program  will  display  your  menu  (  in  a very
  1214.     good-looking graphic format ).  PBMENU will take your reponse
  1215.     and pass it to your CUSTMENU.BAT file as a parameter.
  1216.  
  1217.     CustMenu.bat : This file is a  batch file that does what your
  1218.     menu says it  will do. For example lets say  that the user of
  1219.     your  menu  selects  the  first  option  of  your  menu. That
  1220.     response will be passed to this file as a parameter. Lets say
  1221.     the first option of your menu was
  1222.  
  1223. *BoldFace on
  1224.                         1. Run Word Processor
  1225. *BoldFace off
  1226.  
  1227.          The user would have  typed 1 [RETURN] therefore CustMenu
  1228.     would be given  '1' as its parameter. If you  have a label in
  1229.     CUSTMENU.BAT called  1 then you  can differentiate the  input
  1230.     with labels. If you are unfamiliar with labels and batch file
  1231.     structure  please refer  to you  MS-DOS manual,  it should be
  1232.     explained  there.  Books  such   as  Running  Ms-Dos  by  Van
  1233.     Wolverton are  also very helpful! So  the CustMenu file might
  1234.     look like this
  1235.  
  1236.                echo off
  1237.                cls
  1238.                goto %1
  1239.                :1
  1240.                  cd\EDIT
  1241.                  Word
  1242.  
  1243.                  REM or whatever wordprocessor you own
  1244.  
  1245.                  goto DONE
  1246.  
  1247.                  REM the  above line is very  important. It must
  1248.                  REM be the last line  in each Label or DOS will
  1249.                  REM run  each label that appears  after the one
  1250.                  REM you  wanted  before  returning   you to the
  1251.                  REM menu.
  1252.  
  1253.                REM one  label  for each  key of  your menu would
  1254.                REM exist here.
  1255.  
  1256.                :DONE
  1257.                  CD\BATCH
  1258.  
  1259.                  REM Or  whatever directory you  hold the PBMENU
  1260.                  REM program  in.  This line  is very  important
  1261.                  REM because  otherwise PBMENU won't  be able to
  1262.                  REM find  CUSTMENU.BAT to run your next choice.
  1263. *FormFeed
  1264. *BoldFace on
  1265. *Wide
  1266.       9. The Pro-Bat Help System
  1267. *BoldFace off
  1268.  
  1269.         The ProBat  help system is  a very extensive  one. If you
  1270.     can see it in  the main menu then you can get  help on it. It
  1271.     is easy to use and very comprehensible.
  1272.  
  1273.         By hitting the key F1  you have a resource of information
  1274.     which  is much  more concise  though certainly  comparable to
  1275.     this manual's.  By working your  way through the  help system
  1276.     using  the  menus  you  can  eventually  find  what you want.
  1277.     However this is  slow and becomes too repetitive  if you want
  1278.     to look  at twice very  quickly. To solve  this problem there
  1279.     are  two other  ways to  access the  information: ALT-F1  and
  1280.     CTRL-F1.
  1281.  
  1282.         ALT-F1. Pressing this combination  of keys gives you very
  1283.     specific information. It will tell  you all about the part of
  1284.     Pro-Bat that the highlighted  selection bar is positioned on.
  1285.     For  instance  say  you  are  in  the  Screens  menu  and the
  1286.     highlight bar is  on Delete a screen from  file and you press
  1287.     ALT-F1.  Strange   and  wonderful  things   happen.  You  get
  1288.     information on what Deleting a screen from file is all about.
  1289.     With this method of Help  access the beginner can quickly get
  1290.     the gist of how to use the program. And more or less what the
  1291.     program can do for you.
  1292.  
  1293.         CTRL-F1. To  complement ALT-F1 there  is this capability.
  1294.     If this sequence of keys is pressed then you will get help on
  1295.     whichever  menu is  currently open.  Say that  you are in the
  1296.     Edit menu. You press CTRL-F1  and you get a message revealing
  1297.     what this menu is all about and also a menu with each item of
  1298.     this menu included so that you can select more specific help.
  1299.  
  1300.     NOTE - The  help system should not be  used as an alternative
  1301.     to  the  manual.  Before  using  Pro-Bat  heavily  you should
  1302.     understand a large protion of the manual. The program was not
  1303.     written by a professional and  doesn't have a large degree of
  1304.     file protection written into it.  If you have read the manual
  1305.     thoroughly you shouldn't run into any problem. I'm not saying
  1306.     that something  WILL happen so  READ THE MANUAL  but there is
  1307.     nothing wrong with some prevention.
  1308.  
  1309.     On-Line help can be reached by phoning me at 1-(604)-365-6676
  1310.     or 1-(604)-926-0366 (use the 1  only if it is long distance).
  1311.     I am only too glad to provide technical assistance, I realize
  1312.     its need and I enjoy helping you, so feel free.
  1313. *FormFeed
  1314. *BoldFace on
  1315.       10. Running Pro-Bat
  1316. *BoldFace off
  1317.  
  1318.         ProBat is a  very well behaved program if  you run it the
  1319.     way it likes to be run. By this I mean that if you keep a few
  1320.     things in  mind about where files  are and when you  need and
  1321.     when they should  be where you should avoid  that noisy alarm
  1322.     that always sounds when something goes wrong.
  1323.  
  1324. *BoldFace on
  1325.         10.1 Running off a hard disk setup
  1326. *BoldFace off
  1327.  
  1328.     With the fixed disk type set-up,  I have found that using one
  1329.     directory  say "c:\bat"  to store  absolutely everything  you
  1330.     need for ProBat on that directory, and include that directory
  1331.     in your path command. That way  when you want to run the menu
  1332.     program,  if  the  last  line  of  your  CustMenu.BAT file is
  1333.     "CD\BAT"  then the  program will  always return  to where the
  1334.     files that it  needs are located. The only  problem though is
  1335.     with  using the  PBShow progam.  Say that  one of  your batch
  1336.     files is of in some directory  and it wants to run the PBShow
  1337.     program.  What does  it do?  It will  run the  program but it
  1338.     won't find whatever .SCR file  you want because it is located
  1339.     in C:\BAT. You have two options, 1) relocate the .SCR file or
  1340.     2) always use a pipe command with PBShow like this: "CD\BAT |
  1341.     PbShow 0 MyScrns.scr | CD\WORD". With this set up DOS will go
  1342.     to c:\bat run  PbShow and then go back  to c:\word, if that's
  1343.     the directory the file was in - whatever! Both will work, but
  1344.     I recommend the latter. With this  way you know where in hell
  1345.     all  your .SCR  files are,  and you  don't have  to use  long
  1346.     repetitive path  names when refering to  them inside Pro-Bat.
  1347.     It is however slower because the directory has to be changed.
  1348.  
  1349.     By  storing all  of your  Pro-Bat stuff  on one directory you
  1350.     don't  have to  worry about  editing batch  files that are on
  1351.     another directory  like the autoexec batch  file. Because you
  1352.     can refer to it as c:\autoexec.bat and Pro-Bat knows what you
  1353.     are talking about. It is for this reason that I included that
  1354.     function  in  Pro-Bat.  It  makes  running  the program a lot
  1355.     simpler. With this kind of a set up you won't have to use the
  1356.     Change dir function  in the file menu but it  is there if you
  1357.     need it.
  1358.  
  1359.     If you do decide to take advantage of the Menu you can create
  1360.     then you  should do this type  of a thing: Write  an autoexec
  1361.     batch file  that at the  end changes directory  to c:\bat and
  1362.     runs  the  menu  program.  Things  should  go smoothly, don't
  1363.     forget to add the line CD\BAT to the end of the autoexec file
  1364.     or PbMenu won't run properly.
  1365.  
  1366. *BoldFace on
  1367.         10.2 Running off a floppy setup
  1368. *BoldFace off
  1369.  
  1370.     ProBat  does  really  work  best  on  a  hard drive, but what
  1371.     program doesn't? Anyway with a little thought ProBat can be a
  1372.     great help even on floppy setups. If you only have one floppy
  1373.     though you're out of luck. All  you can do is run the program
  1374.     and  write batch  files. You  can take  full advantage of the
  1375.     screen utility but all you do  with the menu stuff is look at
  1376.     it. Or you  can look at your bank  account and go and by  a 5
  1377.     meg HD if its all you can  afford. The speed of a HD alone is
  1378.     worth  it. To  run the   PBMenu program  you always  need the
  1379.     system  diskete in  the drive  that the  machine booted from,
  1380.     always.  So  if  you  want  to  use  the  Menu  program it is
  1381.     possible. However there is a draw back. (Isn't there always?)
  1382.     Because PBMenu has to read  a .DTA file (PBMenu.DTA) it takes
  1383.     a little while running of a floppy. Soooo, what you can do is
  1384.     this  - configure  a ram   disk. See  your Ms-Dos  manual for
  1385.     particulars on doing that (  if you're not running Ms-Dos 3.x
  1386.     forget  about it  ). What  you can  do with  that is create a
  1387.     system diskette that has an autoexec file on it like this:
  1388.  
  1389.                 echo off
  1390.                 time
  1391.                 date
  1392.                 prompt $p$g
  1393.                 copy PBMenu.* d:
  1394.                 copy CustMenu.bat d:
  1395.                 d:
  1396.                 PBMenu
  1397.  
  1398.     After this, your CustMenu. bat  file will look something like
  1399.     this  when asked  to run  the Word  process label  (say it is
  1400.     label :3)
  1401.  
  1402.      1        .
  1403.      2        .
  1404.      3        .
  1405.      4        :3
  1406.      5          echo off
  1407.      6          cls
  1408.      7          echo Please insert the Word Process diskette in drive B
  1409.      8          pause
  1410.      9          b:
  1411.      10         WORD
  1412.      11         goto DONE
  1413.      12       .
  1414.      13       .
  1415.      14       .
  1416.      15       :DONE
  1417.      16         d:
  1418.  
  1419.  
  1420.     ( Line numbers for reference only. )
  1421.  
  1422.  
  1423.             This way  you have control over  your applications if
  1424.     you want  it without having  to worry about  DOS commands. If
  1425.     you are  not familiar with  the PAUSE command  in line #8  it
  1426.     displays "Strike  a key when ready  . . ." this  way you have
  1427.     displayed  a message  to the  user saying  that when  you are
  1428.     finished  the  task  you  should  do  hit  a key to continue.
  1429.     Remember  that the  disk you  booted the  system with  should
  1430.     always remain  in the A drive  because PBMenu has to  look at
  1431.     Command.COM everytime  it runs CUSTMENU.BAT. That  is where a
  1432.     hard drive is nice because it  takes a while to read the .COM
  1433.     file.
  1434.  
  1435.  
  1436.     NOTE  - If  you want  disk transfer  of files  ( reading  and
  1437.     writing ) to work faster  try adding the line "Buffers=30" to
  1438.     your config.sys file.
  1439.  
  1440. *FormFeed
  1441. *BoldFace on
  1442. *Wide
  1443.       11. The Pro-Bat Disk
  1444. *BoldFace off
  1445.  
  1446.         The distribution disk holds the following files:
  1447.  
  1448.       ProBat.exe    -> Pro-Bat the executable program.
  1449.       PBMenu.exe    -> The executable menu program.
  1450.       PBShow.exe    -> The  executable  program   for  displaying
  1451.                        screens.
  1452.       PrintMan.exe  -> The executable program to print the manual.
  1453.       ProBat.man    -> The Pro-Bat manual.
  1454.       ReadMe.now    -> Text file with last minute specific notes.
  1455.       RegForm.txt   -> Registration form to send in.
  1456.  
  1457.     If your  version doesn't contain  all of these  files and you
  1458.     would like them then write and register and I will send you a
  1459.     complimentary disk.  If you don't have  the registration form
  1460.     then you must include if you  don't mind, your first and last
  1461.     names,  your phone  number (area  code too  please) and  your
  1462.     address, along with the  twenty-five dollar registration fee.
  1463.     Please  also include  the version  of the  copy that  you are
  1464.     currently using and the registration  number. This, so that I
  1465.     can justly reward whomever gave  you the copy. Please see the
  1466.     below  section  Benefits  of  Registration  for enticement to
  1467.     register. Make checks payable to me, Mark Tigges.
  1468.  
  1469.     In  addition the  diskette  contains  several files  that are
  1470.     for  the  example  on  using  ProBat.  Study  these files and
  1471.     understand  there use  and  purpose  and you  will understand
  1472.     ProBat. They are:
  1473.  
  1474.        -> Example.SCR   - holds the screens for the menu system
  1475.        -> CustMenu.BAT  - batch file to carry out menu options
  1476.        -> PBMenu.Dta    - data file holding menu data
  1477.  
  1478. *BoldFace on
  1479.     11.1 PrintMan.EXE . . . Usage
  1480. *BoldFace off
  1481.  
  1482.     To print this manual properly you  must use this file. At the
  1483.     Dos command line just type  PrintMan. If you include "CRT" as
  1484.     a parameter then the manual will be printed to the screen.
  1485. *FormFeed
  1486. *BoldFace on
  1487. *Wide
  1488.       12. About Ansi.SYS
  1489. *BoldFace off
  1490.  
  1491.     Ansi.SYS is  a file included with  MS-DOS. What it can  do is
  1492.     this,  give  you  control   over:  video  attributes,  cursor
  1493.     position,  and  other  things.  Therefore  if  you  have used
  1494.     PBShow.EXE  to display  a screen   you may  want to  move the
  1495.     cursor to a specific place on  the screen. To do this you use
  1496.     Ansi.SYS commands  in your batch file.  The commands are much
  1497.     to  lengthy to  repeat here,  they are  in your Ms-Dos manual
  1498.     anyways. Besides if I listed them here I would be plagerizing
  1499.     from my MicroSoft press Ms - Dos manual - that is against the
  1500.     law so I won't. However these commands can be used just about
  1501.     anywhere  and I  use them  extensively in  my favorite system
  1502.     prompt.  I have  displayed that  prompt for  you below  as an
  1503.     example.
  1504.  
  1505. *BoldFace on
  1506.     prompt $e[s$e[7m$e[1;1H$p$e[m$e[K$e[1;67H$d$e[2;67H$t$h$h$h$e[u.
  1507. *BoldFace off
  1508.  
  1509.     Quite lengthy. This is what it says.
  1510.  
  1511.     $e[s     - save current cursor position
  1512.     $e[7m    - change display attribute to reverse video
  1513.     $e[1;1H  - move cursor to position 1,1
  1514.     $p       - display the path
  1515.     $e[m     - put display attributes back to normal
  1516.     $e[K     - delete to the end of line
  1517.     $e[1;67H - move cursor to position 1,67
  1518.     $d       - display the date
  1519.     $e[2;67H - move cursor to 2,67
  1520.     $t       - display the time
  1521.     $h$h$h   - delete last 3 characters - hundreths of seconds
  1522.     $e[u     - restore the cursor position, from the saved value
  1523.     .        - the actual prompt that is there on each line
  1524.  
  1525.     By the way  if you want to use the  ANSI commands you have to
  1526.     include in  your config.sys file  the line "device=ansi.sys",
  1527.     you  also have  to make  sure that  ansi.sys is  on the  root
  1528.     directory of the system disk that you are using to boot.
  1529. *FormFeed
  1530. *BoldFace on
  1531. *Wide
  1532.       13. Registering Your Copy of Pro-Bat
  1533. *BoldFace off
  1534.  
  1535.     Pro-Bat is more or less a  piece of software that you can use
  1536.     for free.  However it is  very highly recomended  that if you
  1537.     have  copied Pro-Bat  from someone  and you  have come to the
  1538.     conclusion  that  you  want  to  use  Pro-Bat that you should
  1539.     follow these steps to register:
  1540.  
  1541.        1.  Fill  out  the  registration  form   supplied  on  the
  1542.            distrubution disk in the file named RegForm.txt.   The
  1543.            owner and registration number of the copy is displayed
  1544.            when ProBat  starts at the version  screen. Hit CTRL-V
  1545.            in the PullDown menu and this screen will be repeated.
  1546.            Hitting   CTRL-R  will   bring  up   the  registration
  1547.            information  and a  message about  shareware, you  can
  1548.            find the necessary information there as well.
  1549.  
  1550.        2.  Send  me  the completed  form  with enclosed  check or
  1551.            money order at
  1552.  
  1553. *BoldFace on
  1554.                            Mark Tigges
  1555.                            2925 Altamont Cr.
  1556.                            West Vancouver B.C.
  1557.                            CANADA
  1558.                            V7V 3B9
  1559.  
  1560. *BoldFace off
  1561.            as well as an explanation  for your planned use of the
  1562.     program, simply because I am very interested.
  1563.  
  1564.            The cost  of registering your  copy is $35 US,  please
  1565.     enclose  this sum  with the  registration form.  It would  be
  1566.     greatly  appreciated if  you also  enclosed some  hints about
  1567.     what I  should add for  future versions. If  you have noticed
  1568.     any bugs in  the program, or you think  something else should
  1569.     happen at one point in  the program, then please include that
  1570.     information.
  1571.  
  1572.            If you are a business and would like to use Pro-Bat to
  1573.     help set up systems in your  offices then you can get a lower
  1574.     price  per unit  ($5.00 discount  per 5  units to  minumum of
  1575.     $10.00 per unit).
  1576.  
  1577.            If regform.txt is not present on the distribution disk
  1578.     then send the following information:
  1579.  
  1580.        Your : - Name
  1581.               - Phone #
  1582.               - Address ( inc. Country )
  1583.  
  1584.               - The  registration  number  of  the  copy  you are
  1585.                 using.
  1586.               - The Version number
  1587.               - Amount ($) enclosed
  1588.               - If you want the same version you are using or the
  1589.                 newest version. There may be a slight increase in
  1590.                 cost for subsequent versions.
  1591.  
  1592. *BoldFace on
  1593.     /Benefits of registration
  1594. *BoldFace off
  1595.  
  1596.     1. Version updates for the price of a disk plus five dollars.
  1597.  
  1598.     2. If  somebody else registers  a copy with  your number then
  1599.     you get  the five dollars  taken away from  your next version
  1600.     update.
  1601.  
  1602.     3. A version  of Pro-Bat that has your  name written into it.
  1603.     Instead of somebody elses.
  1604.  
  1605.     4. A free conscience.
  1606.  
  1607.     Thank  you for  registering. ShareWare  is a  benefit to both
  1608.     user  and  author  however  it  can't  succeed  without  your
  1609.     cooperation and support.
  1610.  
  1611.     Enjoy the program.
  1612.