home *** CD-ROM | disk | FTP | other *** search
/ PC Plus 64 / ISSUE_64_JAN_1992 / UTILS / PSTATUS.DOC < prev    next >
Encoding:
Text File  |  1992-01-01  |  2.1 KB  |  55 lines

  1.                              PRINTER STATUS PROGRAM
  2.                                        BY
  3.                                 DANIAL D TAYLOR
  4.  
  5.          PSTATUS is a very simple  little   program   that return a dos
  6.          errorlevel to the  appropriate  status  of  the   printer,  so
  7.          this  can be used in a batch file.
  8.  
  9.          The main use for this program is that the downloading of fonts
  10.          to your printer can become  automatic, as sometimes  you  just
  11.          want to use your Wordprocessor for  a  little file and it  has
  12.          to download all your fonts for nothing a not only that  but  a
  13.          waste  of  time, so  now  with  this  program the computer can
  14.          tell  is  you  want  to download  the  fonts as PSTATUS can be
  15.          loaded before your Wordprocessor  and  if  it detects that the
  16.          printer is  active  if  will   execute  the  relevant  command
  17.          (ie.  download  the  fonts),  else   it   will   not  and  the
  18.          Wordprocessor will load as planned.
  19.  
  20.          PSTATUS returns the errorlevels as follows:-
  21.  
  22.          IF PRINTER IS READY     = LEVEL 1
  23.          IF PRINTER IS NOT READY = LEVEL 2
  24.  
  25.          An example of  how  this   program   will   work  in  a  batch
  26.          file is a follows:-
  27.  
  28.                       @ECHO OFF
  29.                       PSTATUS
  30.                       IF ERRORLEVEL 2 GOTO CONTINUE
  31.                       IF ERRORLEVEL 1 GOTO READY
  32.                       :READY
  33.                       ECHO THE PRINTER IS READY
  34.                       (download fonts)
  35.                       :CONTINUE
  36.                       :CONTINUE
  37.                       (run you program)
  38.                       GOTO END
  39.                       :END
  40.  
  41.  
  42.          This program is to be  considered   as   SHAREWARE and  if the
  43.          program is found to be useful then a small donation  of £5 for
  44.          my hard work would be gratefully appreciated.
  45.  
  46.          PSTATUS.EXE was designed by:-
  47.  
  48.          Danial D Taylor
  49.          1 The Cleeves
  50.          West Totton
  51.          Southampton
  52.          Hampshire
  53.          SO4 3WL
  54.          England
  55.