home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / PROGRAMS / UTILS / MOUSE / SPOOL10.ZIP / SPOOL.DOC < prev   
Encoding:
Text File  |  1990-07-07  |  21.1 KB  |  689 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.                                       SPOOL.COM
  29.  
  30.                                 The REAL Print Spooler
  31.  
  32.  
  33.                                      Version 1.00
  34.  
  35.                                      July 7, 1990
  36.  
  37.                                     User's Manual
  38.  
  39.  
  40.                            Copyright 1990 by Tim Underwood
  41.                                  All Rights Reserved
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.           Programs and Documentation  Copyright (c) 1990 by  Tim Underwood.
  50.           All rights reserved. 
  51.            
  52.                Published by: 
  53.            
  54.                     Tim Underwood 
  55.                     1719 S. Shiloh 
  56.                     Wichita, KS 67207 USA 
  57.                     (316)-687-5762 
  58.            
  59.                Electronic Mail to: 
  60.            
  61.                     Compuserve 73577,1554 
  62.                     The   Source   Connection  BBS   (316)-687-0012   24hrs
  63.                     300/1200/2400 8N1
  64.  
  65.                PC-DOS, PC,  PC XT, PC  AT, and PS/2  are trademarks of  IBM
  66.                Corp.
  67.                MS-DOS, OS/2, and Windows are trademarks of Microsoft Corp.
  68.                TurboC is a trademark of Borland International.
  69.                TASM is a trademark of Borland International.
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  103.                                                                           i
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.                                   Table Of Contents
  112.  
  113.  
  114.           Introduction  . . . . . . . . . . . . . . . . . . . . . . .   iii
  115.  
  116.           Registration Information  . . . . . . . . . . . . . . . . .    iv
  117.  
  118.           SPOOL License Agreement and Limited Warranty  . . . . . . . .   v
  119.  
  120.           Technical Support . . . . . . . . . . . . . . . . . . . . .   vii
  121.  
  122.           Installation  . . . . . . . . . . . . . . . . . . . . . . . .   1
  123.  
  124.           Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . .   2
  125.  
  126.           Notes/Cautions  . . . . . . . . . . . . . . . . . . . . . . .   4
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  165.                                                                          ii
  166.  
  167.  
  168.  
  169.  
  170.  
  171.  
  172.  
  173.           Introduction
  174.  
  175.           SPOOL.COM is a  REAL print spooler. It is not a print RAM buffer.
  176.           SPOOL spools (prints)  files directly from the disk,  and deletes
  177.           the file once  it has been  printed. To 'submit' files  to SPOOL,
  178.           simply  copy or  create  them in  the  specified spool  directory
  179.           (specified when SPOOL is initially loaded).
  180.  
  181.           With the default  buffer of  512 bytes,  it only  requires 2K  of
  182.           memory, and unless you have  an extremely fast printer, 512 bytes
  183.           is more than sufficient to keep the printer occupied.
  184.  
  185.           Even  using  on  an  XT   class  machine,  there  is  hardly  any
  186.           degradation  in processing speed.  This is because  SPOOL detects
  187.           each time  a  disk I/O  occurs,  and  will delay  'waking'  up  a
  188.           successively longer length  of time for each disk  I/O. This will
  189.           help speed up  disk throughput for  your application. SPOOL  also
  190.           detects each  time a keystroke  is entered, and again  will delay
  191.           'waking' up  as keystrokes  are entered.  Spoolers are  about the
  192.           lowest  priority task  in a  computer, and  should be  treated as
  193.           such.
  194.  
  195.  
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202.  
  203.  
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210.  
  211.  
  212.  
  213.  
  214.  
  215.  
  216.  
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  227.                                                                         iii
  228.  
  229.  
  230.  
  231.  
  232.  
  233.  
  234.  
  235.           Registration Information
  236.  
  237.           SPOOL  is  a  copyrighted  program  protected  by  both U.S.  and
  238.           international  copyright  law.   You  are  authorized  to use  it
  239.           without charge for  a limited period  of time under the  terms of
  240.           the SPOOL  license agreement.   After this time  is up, you  must
  241.           register and pay for SPOOL to continue using it.
  242.  
  243.           This method of distribution is  known as shareware. It allows you
  244.                                                    _________
  245.           to determine  whether SPOOL meets  your needs before you  pay for
  246.           it.
  247.  
  248.           The registration  fee for a single copy of SPOOL  is $15.  A paid
  249.           registration  of $35  entitles you  to the  full source  used for
  250.           SPOOL (Using TurboC 2.0 and TASM).
  251.  
  252.  
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286.  
  287.  
  288.  
  289.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  290.                                                                          iv
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298.           SPOOL License Agreement and Limited Warranty
  299.  
  300.           (1)  The SPOOL program  and all other programs  and documentation
  301.                distributed  or shipped  with  it  are  copyrighted    works
  302.                protected  by U.S. and  international copyright law.  In the
  303.                rest  of this  document,  this  collection  of  programs  is
  304.                referred to simply as "SPOOL".  You are granted a license to
  305.                use your copy  of SPOOL only under the  terms and conditions
  306.                specified in this license agreement.
  307.            
  308.           (2)  SPOOL is a commercial software  package. It is not free, and
  309.                it  is  not in  the  public  domain.  It is  distributed  as
  310.                shareware,  which means that before you pay for the package,
  311.                _________
  312.                you may try it and see if you want to continue using it. You
  313.                may use SPOOL free for a trial period of up to 15  days.  If
  314.                you wish to continue using SPOOL after that period, you must
  315.                pay  the registration  fee. If  you  choose not  to pay  the
  316.                registration fee,  you must stop  using SPOOL and  remove it
  317.                from  your  computer, though  you  are  still free  to  keep
  318.                shareware copies and pass them along to others.
  319.            
  320.           (3)  You may use  your copy of SPOOL  on a single computer.   You
  321.                may also  install it on a computer attached to a network, or
  322.                remove it  from one computer  and install it on  a different
  323.                one, provided there is no  possibility that a single copy of
  324.                SPOOL  will be used  on more  than one  computer at  a time.
  325.                Site,  and  corporate   licenses  are  available   from  Tim
  326.                Underwood.
  327.            
  328.           (4)  You may  copy SPOOL  for backup purposes,  and you  may give
  329.                copies   of  the  shareware   version  of  SPOOL   to  other
  330.                individuals,  which they  may also  use and  copy  under the
  331.                terms  of this  agreement.   If  you  copy the  unregistered
  332.                version of  SPOOL for  others, you must  include all  of the
  333.                files distributed with it.
  334.            
  335.           (5)  You may NOT give, sell,  or otherwise transfer copies of the
  336.                registered  version  of SPOOL  to any  other person  for any
  337.                reason.    However,  you  may  transfer  ownership  of  your
  338.                registered copy to another person, provided that when you do
  339.                so, you stop  using SPOOL and remove it  from your computer,
  340.                and notify Tim Underwood of the new owner.
  341.            
  342.           (6)  SPOOL  may be  distributed  by  user  groups  or  commercial
  343.                libraries.  You may charge for distribution or mailing fees,
  344.                not to  exceed $5. Only  copies of the  unregistered version
  345.                may    be  distributed,  and  all files  included    in  the
  346.                unregistered version must be on the distribution diskette.
  347.            
  348.           (7)  SPOOL is a  powerful program. While  all attempts have  been
  349.                made to  build in reasonable  safeguards, if you do  not use
  350.                SPOOL properly you may destroy files, or  cause other damage
  351.  
  352.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  353.                                                                           v
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360.  
  361.                to   your  computer  software  and  data.  You  assume  full
  362.                responsibility for the selection and use of SPOOL to achieve
  363.                your intended  results; in no  event shall Tim  Underwood be
  364.                responsible  for any  damages whatsoever  due  to errors  in
  365.                usage  or  your  failure  to  read,  understand,  or  follow
  366.                instructions in the documentation.  Tim Underwood limits his
  367.                warranty to replacement  of a defective program  diskette or
  368.                manual. 
  369.            
  370.           (8)  Like  all useful computer software, SPOOL may contain errors
  371.                in programs or documentation.  If you find such an error  or
  372.                are  otherwise dissatisfied with a registered copy of SPOOL,
  373.                you may return the entire package at any time up to  90 days
  374.                after   purchase  for  a   full  refund  of   your  original
  375.                registration fee;  such a refund  shall be your  sole remedy
  376.                for any program error(s). Tim Underwood shall  not be liable
  377.                for any other costs incurred by you due to such errors.
  378.            
  379.           (9)  If you do not agree with  these terms and conditions, you do
  380.                not  have permission  from the  copyright  holder(s) to  use
  381.                SPOOL, and  you must stop  using it and remove  it from your
  382.                computer.
  383.            
  384.           (10) You may not reverse-engineer, disassemble, modify, decompile
  385.                or create derivative  works of the product.  You acknowledge
  386.                that  the product    includes  certain  trade   secrets  and
  387.                confidential  information, all  of which is  the copyrighted
  388.                intellectual property of Tim Underwood.
  389.  
  390.           (11) Any use or distribution of SPOOL which violates this license
  391.                agreement  will be  considered  a  copyright violation,  and
  392.                prosecuted to the full extend of the law.
  393.  
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400.  
  401.  
  402.  
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.  
  414.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  415.                                                                          vi
  416.  
  417.  
  418.  
  419.  
  420.  
  421.  
  422.  
  423.           Technical Support
  424.  
  425.           Technical  support for SPOOL is available  to both registered and
  426.           non-registered users. If  you are not a registered  user, limited
  427.           assistance will  be provided to  help you get SPOOL  installed if
  428.           you contact me  via The Source Connection BBS  (see below). There
  429.           is a special area on this BBS for registered users.
  430.            
  431.           If you are a  registered user, you can contact Tim  Underwood for
  432.           support at the following electronic addresses:
  433.            
  434.           Compuserve: 
  435.                Easyplex to 73577,1554 
  436.            
  437.           The Source Connection BBS:
  438.                (316)-687-0012 24hrs 300/1200/2400 8N1 
  439.                Leave  a message  to  Tim  Underwood, or  a  comment to  the
  440.                'SYSOP'.
  441.            
  442.           Or via U.S. Mail at:
  443.            
  444.                Tim Underwood 
  445.                1719 S. Shiloh 
  446.                Wichita, KS. 67207 
  447.            
  448.           Support via  electronic mail is strongly preferred,  as it allows
  449.           correspondence at convenient  times regardless of time  zones and
  450.           work schedules, and it provides a record of the communication.
  451.  
  452.  
  453.  
  454.  
  455.  
  456.  
  457.  
  458.  
  459.  
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466.  
  467.  
  468.  
  469.  
  470.  
  471.  
  472.  
  473.  
  474.  
  475.  
  476.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  477.                                                                         vii
  478.  
  479.  
  480.  
  481.  
  482.  
  483.  
  484.  
  485.           Installation
  486.  
  487.           To install SPOOL, simply copy it to a directory on your floppy or
  488.           hard disk.  It is  suggested to install SPOOL.COM in a  directory
  489.           specified by your PATH statement.
  490.  
  491.           You  should also check  the BUFFERS statement  in your CONFIG.SYS
  492.           file.   SPOOL will open and  close files as necessary  to perform
  493.           its  spooling functions,  so a  number  greater than  20 for  the
  494.           BUFFERS statement is suggested.
  495.  
  496.  
  497.  
  498.  
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.  
  506.  
  507.  
  508.  
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.  
  521.  
  522.  
  523.  
  524.  
  525.  
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532.  
  533.  
  534.  
  535.  
  536.  
  537.  
  538.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  539.                                                                           1
  540.  
  541.  
  542.  
  543.  
  544.  
  545.  
  546.  
  547.           Usage
  548.  
  549.           When not installed,  typing in 'SPOOL', 'SPOOL /?'  or 'SPOOL -?'
  550.           will display the following help screen:
  551.  
  552.           SPOOL.COM 1.0  Copyright (c) 1990 by Tim Underwood
  553.  
  554.                Switches:
  555.                -d:device           (LPT1,  LPT2,  LPT3,  PRN,  defaults  to
  556.                                    LPT1)
  557.                -q<spool directory> (Must be explicitly declared)
  558.                -b:buffer size      (512 bytes  default, 128 bytes  min, 32K
  559.                                    max)
  560.                -u:ticks to wait    (1 - 255, default = 1)
  561.                -m:ticks to print   (1 - 255, default = 2)
  562.                -s:timeslice        (1 - 255, default = 8)
  563.                -h   Put SPOOL on hold
  564.                -g   Resume SPOOL
  565.                -?   This help text
  566.  
  567.           The switches  are defined as  follows (Case is  insignificant for
  568.           the switches):
  569.  
  570.                -d:device           Device to  be used for printing.  If not
  571.                                    entered,  SPOOL  will default  to  LPT1.
  572.                                    Enter either LPT1, LPT2, LPT3, or PRN as
  573.                                    the device.
  574.                                    Examples:
  575.                                    -d:LPT1
  576.                                    -d:PRN
  577.  
  578.                -q<spool directory> This is the  drive/directory SPOOL looks
  579.                                    for  files.   This  directory should  be
  580.                                    reserved  EXCLUSIVELY  for  the  use  of
  581.                                    SPOOL.COM,  as  any file  found  in this
  582.                                    directory  will  be  printed,  and  once
  583.                                    printed,  will be  deleted. This  is the
  584.                                    only   required   parameter   to   start
  585.                                    SPOOL.COM
  586.                                    Examples:
  587.                                    -qC:\SPOOL
  588.                                    -qE:\FILES\SPOOL
  589.  
  590.                -b:buffer size      This  is the size of the read buffer, in
  591.                                    bytes, that spool will use for file I/O.
  592.                                    The default is 512 bytes, and unless you
  593.                                    have  a  very  fast  printer, should  be
  594.                                    sufficient.  The buffer must be  between
  595.                                    128 bytes and 32K.
  596.  
  597.                -u:ticks to wait    This is the number of timer  ticks SPOOL
  598.                                    will wait  for the printer to  be READY,
  599.  
  600.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  601.                                                                           2
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609.                                    if  it  is  busy.  Once  this  time  has
  610.                                    elapsed,   SPOOL   will  give   up   its
  611.                                    timeslice and return  to the interrupted
  612.                                    application/process.  Setting this value
  613.                                    very high will result  in lengthy delays
  614.                                    in  running  your applications  if  your
  615.                                    printer is off-line,  or is a very  slow
  616.                                    printer. The default value is 1.
  617.  
  618.                -m:ticks to print   This is the number  of timer ticks SPOOL
  619.                                    will spend  printing characters,  unless
  620.                                    the printer  is busy, in which  case the
  621.                                    -u switch value will take over.    A   s
  622.                                    with the -u  switch, setting this  value
  623.                                    very  high  will  result  in  processing
  624.                                    delays. The default value is 2.
  625.  
  626.                -s:timeslice        This is the number of timer ticks  SPOOL
  627.                                    will wait  between attempts to  print to
  628.                                    the  printer. The default value is 8, so
  629.                                    SPOOL will only attempt to  print to the
  630.                                    printer every 8th  timer tick. (Remember
  631.                                    that  there  are  approx.  18.2 ticks  a
  632.                                    second). Setting  this value  lower will
  633.                                    cause  SPOOL  to 'wake-up'  more  often,
  634.                                    thus resulting in processing delays.
  635.  
  636.                -h:hold SPOOL       Once installed,  you may type  in 'SPOOL
  637.                                    -h' to put SPOOL  on hold.  If  SPOOL is
  638.                                    currently printing a file, it will stop,
  639.                                    print  a  form   feed,  and  put  itself
  640.                                    permanently  to sleep.  This will  allow
  641.                                    you to  regain control  of the  printer.
  642.                                    Whenever SPOOL is loaded, any attempt to
  643.                                    print to the  printer SPOOL is  printing
  644.                                    to will result in an immediate return to
  645.                                    the calling program  with a 'Printer not
  646.                                    ready'. This will usually  result in the
  647.                                    familiar   'Abort,   Retry   or  Ignore'
  648.                                    message.
  649.  
  650.                -g:resume SPOOL          Once  installed,  you may  type  in
  651.                                         'SPOOL  -g' to  resume  SPOOL.   It
  652.                                         will  start   printing,  from   the
  653.                                         beginning  of  the  file previously
  654.                                         halted.  Using -g and -h allow  you
  655.                                         to turn  SPOOL on and off,  so that
  656.                                         you may  print to  your printer  in
  657.                                         the normal fashion.
  658.  
  659.           When  SPOOL  is  installed,  typing in  'SPOOL'  will  print  out
  660.           information about SPOOL's current status.
  661.  
  662.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  663.                                                                           3
  664.  
  665.  
  666.  
  667.  
  668.  
  669.  
  670.  
  671.           Notes/Cautions
  672.  
  673.           Due to the nature of what SPOOL is and does, before attempting to
  674.           load it, you should take  the normal cautions of backing up  your
  675.           hard  disk. With  any TSR  that  performs DOS  I/O in  background
  676.           (including  PRINT.COM), there is always the danger that something
  677.           may inadvertently get 'zapped'. PLEASE  TAKE SENSIBLE PRECAUTIONS
  678.           BEFORE LOADING SPOOL!!
  679.  
  680.           Once SPOOL has printed a  file, it will automatically be deleted.
  681.           If you desire to  keep this file,  put a copy  only in the  spool
  682.           directory.
  683.  
  684.           SPOOL will only print to a  parallel printer.  There is currently
  685.           no support for a serial printer. Also, there may be only one copy
  686.           of SPOOL installed in the machine.
  687.  
  688.           SPOOL installs  itself, using  the same  INT2F identification  as
  689.           PRINT.COM.  This is intentional,  to prevent SPOOL  and PRINT.COM
  690.           being  installed  for  the same  printer.  However,  there is  no
  691.           support for  the 'Submit to  Queue', 'Return  Queue', etc.  calls
  692.           that PRINT.COM has. As  there is no  internal queue in SPOOL,  no
  693.           support is  needed for these  functions. The queue is  simply the
  694.           queue directory.
  695.  
  696.           SPOOL has been tested with DOS versions 3.3 and 4.01 ONLY. If you
  697.           are using  any other version  of DOS, USE EXTREME  CAUTION! (Also
  698.           give some serious consideration to upgrading to DOS 3.3).
  699.  
  700.           When SPOOL is running (you have not entered the '-h' switch), you
  701.           cannot print  to your printer.  An error  will be returned to any
  702.           application attempting  to print while  SPOOL is active.   If you
  703.           wish to  use your printer  for another application, use  the '-h'
  704.           and '-g' switches.
  705.  
  706.  
  707.  
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.           SPOOL.COM 1.00 Documentation      Copyright 1990 by Tim Underwood
  725.                                                                           4
  726.