home *** CD-ROM | disk | FTP | other *** search
/ PC World 2000 August / PCWorld_2000-08_cd.bin / Software / TemaCD / ghostscr / gs601w32.exe / gs6.01 / lib / ps2ps.bat < prev    next >
DOS Batch File  |  2000-03-09  |  439b  |  23 lines

  1. @echo off 
  2. @rem $Id: ps2ps.bat,v 1.1 2000/03/09 08:40:40 lpd Exp $
  3. @rem "Distill" PostScript.
  4.  
  5. if "%1"=="" goto usage
  6. if "%2"=="" goto usage
  7. echo -dNODISPLAY -dNOPAUSE -dBATCH >_.at
  8. :cp
  9. if "%3"=="" goto doit
  10. echo %1 >>_.at
  11. shift
  12. goto cp
  13.  
  14. :doit
  15. rem Watcom C deletes = signs, so use # instead.
  16. gs -q -sDEVICE#pswrite -sOutputFile#%2 @_.at %1
  17. goto end
  18.  
  19. :usage
  20. echo "Usage: ps2ps ...switches... input.ps output.ps"
  21.  
  22. :end
  23.