summaryrefslogtreecommitdiff
path: root/Master/tlpkg/installer/tl-cmd.bat
blob: 4102c7b757f78606dfa4af989a94f252f8f3b1ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
@echo off

rem This batchfile starts a command prompt with the TeX Live
rem Windows binary directory as first path component.

rem Public domain

@echo off
setlocal enableextensions

rem Add bin dir to beginning of PATH only if it is not already there
for /f "tokens=1,2 delims=;" %%I in ("%~dp0..\..\bin\win32;%PATH%") do if not "%%~fI"=="%%~fJ" set "PATH=%%~fI;%PATH%"

cd /d %HOMEDRIVE%%HOMEPATH%

rem Start new console
start "TeX Live" "%COMSPEC%"