@echo off rem Launcher script for sam2p rem Make environment changes local setlocal enableextensions rem Get TL installation root (w/o trailing backslash) set tlroot=%~dp0: set tlroot=%tlroot:\bin\win32\:=% rem Use provided GS set GS_LIB=%tlroot%\tlpkg\tlgs\lib;%tlroot%\tlpkg\tlgs\fonts rem Add bin dir to path path %tlroot%\bin\win32;%tlroot%\tlpkg\tlgs\bin;%path% rem Start sam2p and exit "%tlroot%\tlpkg\sam2p\sam2p.exe" %*