@echo off rem set version numbers call "%~dp0versions.bat" rem set path to executables set path=%~dp0gs\gs%GS_VERSION%\lib;%~dp0gs\gs%GS_VERSION%\bin;%~dp0texmf\miktex\bin;%path% rem MiKTeX environment rem extra paths to locate .bib files. set BIBINPUTS=.// rem Extra paths to locate .bst files. set BSTINPUTS=.// rem Extra paths to locate METAFONT input and openin files. set MFINPUTS=.// rem Extra paths to locate MetaPost input files. set MPINPUTS=.// rem Extra paths to locate TeX \input and \openin files. set TEXINPUTS=.// rem Ghostscript environment set GS_DLL=%~dp0gs\gs%GS_VERSION%\bin\gsdll32.dll set GS_LIB=%~dp0gs\gs%GS_VERSION%\lib;%~dp0gs\fonts;%~dp0gs\gs%GS_VERSION%\Resource rem chdir to the first argument or, if it's a file, to its parent dir ( %~d1 cd %1 || cd "%~p1" ) 1>nul 2>nul rem open console cmd.exe