summaryrefslogtreecommitdiff
path: root/systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat
Initial commit
Diffstat (limited to 'systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat')
-rw-r--r--systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat15
1 files changed, 15 insertions, 0 deletions
diff --git a/systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat b/systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat
new file mode 100644
index 0000000000..747d308823
--- /dev/null
+++ b/systems/texlive/tlnet/tlpkg/installer/tl-cmd.bat
@@ -0,0 +1,15 @@
+@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%"
+
+rem Start new console
+start "TeX Live" "%COMSPEC%"