@echo off
if%1/==/ gotousageif%2/==/ gotousagesetinfile=%1setoutfile=%2rem Now convert the input to EPSF and add the Preview to the EPSF file
gsos2 -q -dNOOUTERSAVE -dNODISPLAY -dLastPage=1 -sOutputFile=%outfile% --permit-file-read=%infile%%~dp0ps2epsi.ps %infile%gotoend:usageecho"Usage: ps2epsi <infile.ps> <outfile.epi>":end