SetPRN by JJO PURPOSE SetPRN is intended to be called from a batch file (see below) to set printer parameters prior to calling a print spooler. SetPRN always sets the printer's perforation skip function to 5 lines. If no printer options are selected, SetPRN defaults to Epson and should be compatible with most printers. USAGE Syntax: SETPRN [?][options] Parameters: [] optional and <> required, where a parameter is a character or a string (no spaces). Parameters must be separated by one or more spaces where so shown above. Parameter List ? means display this file (/? is also acceptable). Options, one or more of (any order and case); /B forces black & white display. /L:n sets line spacing (n = 6, 4 or 8 lpi). /M:n sets margin (n = 0..10). /P:n chooses printer port (n = 1..2). /Q:c sets print quality (c = (D)raft, (E)mphasized or (L)etter). /T:c sets type style (c = (P)ica, (E)lite or (C)ompressed). /U:c selects printer (c = (E)pson, (D)ataproducts or (I)BM. The defaults are listed first. If M, Q or T are used for other than an Epson (or clone) then enter printer code. NOTES If there are command line errors or the specified printer is unavailable, SetPRN will halt with an error message. Error messages are beeped and left on the screen when SetPRN terminates. Planned upgrades include automatic generation of the print spooler command line from file and option parameters supplied to SetPRN. This file amy be printed via MerPRN or by typing at the DOS prompt TYPE SETPRN.TXT > PRN. BATCH FILE USAGE SetPRN is designed for execution from within a batch file; hence, test for an error code returned by SetPRN and, if found, stop batch execution until the problem is cleared. This can be done by inserting a line like this after each call to SetPRN: IF ERRORLEVEL 1 GOTO Error where "Error" can be any line(s) which cause the batch process to terminate. See the sample batch file SetEx.Bat. ***