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