UTILS\PSTATUS.DOC ·
DOC ·
2.1 KB ·
1992-01-01 ·
from PCPlus_Issue-64_Jan-1992
PRINTER STATUS PROGRAM
BY
DANIAL D TAYLOR
PSTATUS is a very simple little program that return a dos
errorlevel to the appropriate status of the printer, so
this can be used in a batch file.
The main use for this program is that the downloading of fonts
to your printer can become automatic, as sometimes you just
want to use your Wordprocessor for a little file and it has
to download all your fonts for nothing a not only that but a
waste of time, so now with this program the computer can
tell is you want to download the fonts as PSTATUS can be
loaded before your Wordprocessor and if it detects that the
printer is active if will execute the relevant command
(ie. download the fonts), else it will not and the
Wordprocessor will load as planned.
PSTATUS returns the errorlevels as follows:-
IF PRINTER IS READY = LEVEL 1
IF PRINTER IS NOT READY = LEVEL 2
An example of how this program will work in a batch
file is a follows:-
@ECHO OFF
PSTATUS
IF ERRORLEVEL 2 GOTO CONTINUE
IF ERRORLEVEL 1 GOTO READY
:READY
ECHO THE PRINTER IS READY
(download fonts)
:CONTINUE
:CONTINUE
(run you program)
GOTO END
:END
This program is to be considered as SHAREWARE and if the
program is found to be useful then a small donation of £5 for
my hard work would be gratefully appreciated.
PSTATUS.EXE was designed by:-
Danial D Taylor
1 The Cleeves
West Totton
Southampton
Hampshire
SO4 3WL
England