1@echo off 2 3rem Set default values for GS (gs with graphics window) and GSC 4rem (console mode gs) if the user hasn't set them. 5 6if NOT %GS%/==/ goto :gsset 7if EXIST %~dp0..\bin\gswin32.exe set GS=%~dp0..\bin\gswin32 8if %GS/==/ set GS=gswin32 9:gsset 10 11if NOT %GSC%/==/ goto :gscset 12if EXIST %~dp0..\bin\gswin32c.exe set GSC=%~dp0..\bin\gswin32c 13if %GSC%/==/ set GSC=gswin32c 14:gscset 15