home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 15 / CD_ASCQ_15_070894.iso / vrac / barbra.zip / DOWNLOAD.BAT < prev    next >
DOS Batch File  |  1994-04-04  |  1KB  |  50 lines

  1. echo off
  2. if not "%1"=="" goto :NoExplain
  3.  
  4. echo This batch file will download a font file to the LaserJet or
  5. echo DeskJet, and (optionally) print a file using it.
  6. echo Syntax:   download [fontfile] [textfile]
  7. goto :end
  8.  
  9. :NoExplain
  10. if not exist %1 goto :NoFontFile
  11. if not exist font.id1 goto :NoFontID
  12. if not exist perm goto :NoPerm
  13.  
  14. echo Font '%1' is being downloaded to the printer.
  15. echo It may take half a minute or more, depending on how big the file is.
  16. echo If it takes much longer, make sure the printer is turned on and is
  17. echo on line, and that the cables are firmly attached.
  18.  
  19. copy /b font.id1+%1+perm prn > nul
  20. echo Font '%1' has been downloaded
  21. if "%2"=="" goto :end
  22. if not exist %2 goto :NoTextFile
  23. if not exist barbara.sel goto :NoSelect
  24. copy /b barbara.sel+%2 prn > nul
  25. echo   > prn
  26. echo Printed file '%2'
  27. goto :end
  28.  
  29. :NoFontFile
  30. echo Font file '%1' not in the current directory
  31. goto :end
  32.  
  33. :NoFontID
  34. echo Font ID file 'font.id1' not in the current directory
  35. goto :end
  36.  
  37. :NoPerm
  38. echo File 'perm' not in the current directory
  39. goto :end
  40.  
  41. :NoTextFile
  42. echo ASCII text file '%2' not in the current directory
  43. goto :end
  44.  
  45. :NoSelect
  46. echo File 'barbara.sel' not in the current directory
  47. goto :end
  48.  
  49. :end
  50.