home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Best of German Only 2
/
romside_best_of_german_only_2.iso
/
dos
/
anwender
/
tksfonts
/
entpack.exe
/
PRINTDOC.BAT
< prev
next >
Wrap
DOS Batch File
|
1991-07-10
|
3KB
|
95 lines
echo off
cls
echo
echo F O N T L O A D E R
echo
echo An HP LaserJet or compatible that supports soft fonts is required to print
echo the documentation. Thirteen fonts are sent to your LaserJet before printing.
echo They have ID numbers from 0 to 12. Don't change these ID numbers as some
echo fonts are called by their ID's.
echo
echo 267K bytes of fonts are sent to your printer. If you have a 512K LaserJet,
echo make sure that you don't have any other soft fonts loaded or you may have
echo trouble running this demo.
echo
if not /%1 == / goto parm
echo Using PRN! If your LaserJet is on another device, exit by
echo pressing control break and then pass the name as the 1st parameter.
echo Like this: "PRINTDOC.BAT LPT2".
echo
echo If you are printing through a LAN, pass the "-UD" Use DOS option to print
echo to PRN through DOS instead of the ROM BIOS.
echo Like this: "PRINTDOC.BAT -UD".
echo
:parm
echo Press any to key to begin loading fonts. Press control break to exit.
echo
pause
cls
echo
if /%1 == / goto default
if %1 == -ud goto default
if %1 == -UD goto default
if not exist %1 goto no_outfile
:default
if not exist %2FONTLODR.EXE goto no_exe
if not exist %3HV240RPN.USP goto no_font
if not exist %4FONTLODR.DOC goto no_doc
if not exist %4FL.RSP goto no_rsp
rem Notice how it is necessary to specify two "%" characters in a batch file!
rem Example BATch file line: %2FontLodr.exe %3hv240rpn.usp -l-sh:67%%-t %1 1
%2FontLodr.exe %5@FL.RSP %3hv240rpn.usp -t %1 0
if errorlevel 1 goto error
echo Will now print documentation. Control break to exit.
pause
if /%1 == / goto copydoc
if %1 == -ud goto copydoc
if %1 == -UD goto copydoc
copy %4fontlodr.doc %1
goto exit
:copydoc
copy %4fontlodr.doc prn
goto exit
:error
echo
echo An error has been returned from FontLoader. Aborting batch file!
goto exit
:no_outfile
echo Error: %1 does not exist. Pass the name of a valid device like "LPT2".
if not exist %2FONTLODR.EXE goto no_exe
if not exist %3HV240RPN.USP goto no_font
if not exist %4FONTLODR.DOC goto no_doc
if not exist %5FL.RSP goto no_rsp
goto help
:no_exe
echo Error: Pass the path where FONTLODR.EXE is located as the 2nd parameter.
if not exist %3HV240RPN.USP goto no_font
if not exist %4FONTLODR.DOC goto no_doc
if not exist %5FL.RSP goto no_rsp
goto help
:no_font
echo Error: Pass the path where HV240RPN.USP is located as the 3rd parameter.
if not exist %4FONTLODR.DOC goto no_doc
if not exist %5FL.RSP goto no_rsp
goto help
:no_doc
echo Error: Pass the path where FONTLODR.DOC is located as the 4th parameter.
if not exist %5FL.RSP goto no_rsp
goto help
:no_rsp
echo Error: Pass the path where FL.RSP is located as the 5th parameter.
:help
echo
echo Format: PRINTDOC device path path path path
echo
echo Where Device is PRN, LPT1, LPT2, etc.
echo First path is for FONTLODR.EXE.
echo Second path is for HV240RPN.USP.
echo Third path is for FONTLODR.DOC.
echo Fourth path is for FL.RSP.
echo
echo Example: PRINTDOC PRN \UTIL\ ..\TMPPATH\ .\ D:\FONTS\
echo Notice: Every path name ends with a backslash\.
:exit