home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1993 #2
/
Image.iso
/
print
/
sjii.zip
/
PRTDOC.BAT
< prev
next >
Wrap
DOS Batch File
|
1992-10-12
|
2KB
|
85 lines
@echo off
cls
echo ┌─────────────────────────────────────────────────────────────────────┐
echo │ This program will print the softJET II user manual on your │
echo │ LaserJet printer. It assumes that your printer is connected to │
echo │ PRN or LPT1. If your printer is connected to a "COM" port or an │
echo │ "LPT" port other than port #1 then exit this procedure by │
echo │ pressing Ctrl-C and follow the instructions below. │
echo └─────────────────────────────────────────────────────────────────────┘
echo ┌─────────────────────────────────────────────────────────────────────┐
echo │ If your printer is connected to a line printer port (LPT:) │
echo │ other than port #1 then enter the command: │
echo │ │
echo │ "PRTDOC 1" or "PRTDOC 2" etc. │
echo │ │
echo │ If your printer is connected to a serial communications port │
echo │ (COM:) then enter the command: │
echo │ │
echo │ "PRTDOC C 1" or "PRTDOC C 2" etc. │
echo └─────────────────────────────────────────────────────────────────────┘
echo ┌─────────────────────────────────────────────────────────────────────┐
echo │ Make sure your printer is ON and READY ... or press Ctrl-C to exit. │
echo └─────────────────────────────────────────────────────────────────────┘
pause
if /%1/ == /c/ goto com
if /%1/ == /C/ goto com
if /%1/ == /1/ goto lpt_1
if /%1/ == /2/ goto lpt_2
if /%1/ == /3/ goto lpt_3
if /%1/ == /4/ goto lpt_4
:lpt_1
doc -pb
goto end
:lpt_2
doc -pb2
goto end
:lpt_3
doc -pb3
goto end
:lpt_4
doc -pb4
goto end
:com
if /%2/ == /1/ goto com_1
if /%2/ == /2/ goto com_2
if /%2/ == /3/ goto com_3
if /%2/ == /4/ goto com_4
:com_1
doc -pbc
goto end
:com_2
doc -pbc2
goto end
:com_3
doc -pbc3
goto end
:com_4
doc -pbc4
goto end
:end