home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
dos
/
rprn.lzh
/
RPRN.DOC
< prev
Wrap
Text File
|
1986-03-05
|
3KB
|
120 lines
RPRN
By Robert J. Newton
Every redirect printer to file program I have tried has failed
on my AT, usually crashing. RPRN has no DOS version dependencies
(1.x is not supported), uses only documented DOS features, does
not attempt to re-enter DOS and appears to the user much like
standard output device redirection. However, the price of this
compatibility is that, like standard output redirection, RPRN
works only with applications which use DOS and not BIOS for
printer services. Perhaps someday Microsoft will document the
proper way to re-enter DOS, permitting a safe intercept of BIOS
printer service.
The command line format is:
rprn [d:][path][filename][.ext] >[>][d:][path]filename[.ext]
Note that the command line syntax for RPRN is essentially
identical to that used for redirection of the standard output
device, except that the command line begins with RPRN. The first
d:path filename.ext is the pathspec of an executable file and is
optional. The second pathspec is that of the file to which the
printer is being redirected. Additional parameters for the
executable file are accepted.
If an optional executable program is specified, that program will
be executed and any output it sends to the printer through DOS
will be redirected to the file. Redirection will terminate
automatically upon exit from the program.
If no executable program is specified, you will see the sign on
banner of the command processor and redirection will remain
effective until you enter EXIT at a DOS prompt. All exits will
leave an ERRORLEVEL for checking by batch files. Errors internal
to RPRN return 255, all others return the DOS error
number.
NOTE: Since RPRN invokes a secondary copy of the command
processor, you must have a COMSPEC=parameter in your environment.
In addition, if you SET your own COMSPEC do not place any spaces
or other delimiters before the "=" or RPRN cannot find the
COMSPEC.
Version 2.1 corrects a bug when STDIN is redirected.
RPRN is (C) Copyright 1985 by Robert J. Newton, but hereby
released to the public domain for private non-commercial use. It
may be freely copied and distributed, but no consideration may be
requested other than any customary handling fees charged by
1
recognized user's groups. No warranties of any kind are provided
and by using the program the user assumes all risk.
2