home *** CD-ROM | disk | FTP | other *** search
/ ftp.barnyard.co.uk / 2015.02.ftp.barnyard.co.uk.tar / ftp.barnyard.co.uk / cpm / walnut-creek-CDROM / CPM / SUBMIT / NEWBAT3.LBR / NEWBATCH.DZC / NEWBATCH.DOC
Text File  |  2000-06-30  |  5KB  |  114 lines

  1.  
  2. VER 3
  3. 01/18/88    Version 2 disassembled, disk/directory full error
  4.         checking and other mods. added. LBR file created.
  5.  
  6. MAKBATCH.* are the original files mentioned below.
  7. NEWBATCH.* are the patched files for MAKBATCH.
  8. NEWBAT3 .* are the version 3 files.
  9.  
  10.  
  11. Ver. 2.0
  12. 9 NOV 1987
  13.                                 NEWBATCH.DOC
  14.                                 ============
  15.  
  16.  
  17.      This program allows the creation of SUBMIT-like batch COMmand programs,
  18. and is a modest revision of a public domain program, called MAKBATCH, (c) 1985
  19. by Castle Oaks Computer Services.  I really liked that program and used it a
  20. lot, but I never cared for the mode of text entry it used (it allowed no line
  21. editing whatever), and it had several minor bugs that needed fixing.  I
  22. finally took the time to learn enough Assembly language in order to revise it
  23. more to my liking, and this is the result.
  24.  
  25.      Essentially, NEWBATCH replaces the need for SUBMIT.COM and its dependent
  26. SUB batch processing files.  It creates short COM programs which contain the
  27. command lines of your choosing, and also contain the instructions necessary to
  28. load these commands into a temporary file ($$$.SUB).  These SUB files are
  29. passed to CP/M, which then carries out the commands one by one.  Of course,
  30. all this complicated action is done in the background.  The user of NEWBATCH
  31. is presented with a very simple interface.
  32.  
  33.      For illustration purposes, let us say that we want to create a SUBMIT-
  34. type batch program to automate our WordStar sessions.  We have decided to name
  35. this program WSTART.COM.
  36.  
  37.      First, we activate NEWBATCH by calling up its name, including the name of
  38. the batch program to be created, like this:
  39.  
  40.                     NEWBATCH WSTART.COM
  41.  
  42.      This tells NEWBATCH that you wish to create a batch command program,
  43. called WSTART.COM.  Let us say that we want WSTART.COM to contain the
  44. following commands relating to WordStar:
  45.  
  46.                     QK L WSTAR.KEY
  47.                     B:
  48.                     A:WS
  49.                     ERA *.BAK
  50.                     A:
  51.                     QK R
  52.                     <CR>       <=== this carriage return ends input
  53.  
  54.      Instead of creating a SUBMIT text file containing these lines , we would
  55. enter them exactly as above once we're in NEWBATCH.  A carriage return ends
  56. each line, with a final carriage return to end input and write the new batch
  57. program, (in this case WSTART.COM) to disk.
  58.  
  59.      What the commands will accomplish is to load a program called QK
  60. (QwikKey), which puts some WordStar key macro definitions in a safe place in
  61. high memory, then moves to the 'B' drive.  From the 'B' drive WordStar is
  62. loaded, and since 'B' is now the default drive, its directory is displayed.
  63.  
  64.      Upon exiting from WordStar the last three commands are brought into
  65. action.  First, all the BAK files on 'B' are erased.  Then there is a return
  66. to drive 'A' and the final command, which removes the key macro definitions
  67. from high memory.
  68.  
  69.      While you are entering your command lines, you have all of the CP/M line
  70. editing functions available to you, such as destructive backspace and ^X.
  71. This is the single biggest improvement over MAKBATCH.  Of course, once you end
  72. a line with a carriage return, you cannot go back and edit it.  In this case,
  73. just exit NEWBATCH (with carriage returns) and start over again.
  74.  
  75.      That's all there is to it.  When you type WSTART, all of the above
  76. commands will be activated in sequence, without the need for SUBMIT or SUB
  77. files.
  78.  
  79.      Version 2 of NEWBATCH is identical to the original version of NEWBATCH,
  80. except that I have added a new utility to use with NEWBATCH files.  At some
  81. future time you may want to revise your batch programs to add or eliminate
  82. some of the commands.  Of course, all you have to do is create a new batch
  83. program, right?  But just what are the CURRENT batch commands in the batch
  84. file?  It is very easy to forget just what commands you put in the batch
  85. program six months ago, unless you write it down somewhere.
  86.  
  87.     That is where NBSEE.COM comes in.  All you have to do to peek into a batch
  88. program, like WSTART.COM, for example, is to type 'NBSEE WSTART.COM'.  What
  89. you will see on the screen, provided that WSTART is on the disk you select, is
  90. a listing of the current commands contained in WSTART.COM.  Armed with this
  91. information, you should have no trouble creating a new batch program, which
  92. keeps the desired features of the original, but incorporates new elements.
  93. Now you won't have to re-invent the wheel, when you just want to put on some
  94. new wheel covers.
  95.  
  96.      I often use NEWBATCH to create COM startup programs for use with MBASIC
  97. to save a few keystrokes, such as:
  98.  
  99.           NEWBATCH DESK.COM
  100.  
  101.      DESK.COM contains the following command:
  102.  
  103.           MBASIC DESKMASTR
  104.  
  105.      With this procedure I never have to type MBASIC again!
  106.  
  107.  
  108.      To my mind some of the biggest gains in ease of computer use are attained
  109. through batch processing and keyboard macro programs.  NEWBATCH really helps
  110. me get more out of my computer.  I hope that it may be of help to you, too.
  111.  
  112. Nov 9, 1987     Ernest Helliwell    San Francisco, CA
  113.                 With thanks to Castle Oaks Computer Services
  114.