home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TopWare 18: Liquid
/
Image.iso
/
liquid
/
top2097
/
download.bat
< prev
next >
Wrap
DOS Batch File
|
1994-04-04
|
1KB
|
50 lines
echo off
if not "%1"=="" goto :NoExplain
echo This batch file will download a font file to the LaserJet or
echo DeskJet, and (optionally) print a file using it.
echo Syntax: download [fontfile] [textfile]
goto :end
:NoExplain
if not exist %1 goto :NoFontFile
if not exist font.id1 goto :NoFontID
if not exist perm goto :NoPerm
echo Font '%1' is being downloaded to the printer.
echo It may take half a minute or more, depending on how big the file is.
echo If it takes much longer, make sure the printer is turned on and is
echo on line, and that the cables are firmly attached.
copy /b font.id1+%1+perm prn > nul
echo Font '%1' has been downloaded
if "%2"=="" goto :end
if not exist %2 goto :NoTextFile
if not exist barbara.sel goto :NoSelect
copy /b barbara.sel+%2 prn > nul
echo > prn
echo Printed file '%2'
goto :end
:NoFontFile
echo Font file '%1' not in the current directory
goto :end
:NoFontID
echo Font ID file 'font.id1' not in the current directory
goto :end
:NoPerm
echo File 'perm' not in the current directory
goto :end
:NoTextFile
echo ASCII text file '%2' not in the current directory
goto :end
:NoSelect
echo File 'barbara.sel' not in the current directory
goto :end
:end