1 @echo off 2 3 rem This batchfile starts a command prompt with the TeX Live 4 rem Windows binary directory as first path component. 5 6 rem Public domain 7 8 @echo off 9 setlocal enableextensions 10 11 rem Add bin dir to beginning of PATH only if it is not already there 12 for /f "tokens=1,2 delims=;" %%I in ("%~dp0..\..\bin\windows;%PATH%") do if not "%%~fI"=="%%~fJ" set "PATH=%%~fI;%PATH%" 13 14 rem Start new console 15 start "TeX Live" "%COMSPEC%"