home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / print / colpr2.zip / PR1COL.BAT < prev    next >
DOS Batch File  |  1993-07-08  |  704b  |  27 lines

  1. @echo off
  2. rem
  3. rem Usage: PR1COL infile
  4. rem
  5. rem Reformat the input file to 132 characters/line, then print in 1 column
  6. rem This should be OK to use with all printers. If 20 cpi mode is supported
  7. rem consider increasing 132 to a value up to 160 or creating a left margin (/M)
  8. rem
  9. if "%1" == "" echo Usage: PR1COL infile
  10. if "%1" == "" goto end
  11. if not "%2" == "" echo Usage: PR1COL infile
  12. if not "%2" == "" goto end
  13.  
  14. rap %1 /W132 \rap.tmp
  15. if not ERRORLEVEL EQ 0 goto raperror
  16. colprint \rap.tmp \colprint.tmp /c1
  17. if not ERRORLEVEL EQ 0 goto cperror
  18. print \colprint.tmp
  19. goto end
  20. :raperror
  21. echo Error in RAP processing
  22. goto end
  23. :cperror
  24. echo Error in COLPRINT processing
  25. goto end
  26. :end
  27.