diff options
Diffstat (limited to 'Master/tl-portable.bat')
-rwxr-xr-x | Master/tl-portable.bat | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/Master/tl-portable.bat b/Master/tl-portable.bat index 98a52b2725c..ee0d12167d3 100755 --- a/Master/tl-portable.bat +++ b/Master/tl-portable.bat @@ -3,10 +3,8 @@ rem Copyright 2008-2009 Siep Kroonenberg, Tomasz M. Trzeciak. rem You may freely use, modify and/or distribute this file. rem First, check if this is DOS based system -rem in DOS '&' is just a normal character -echo.>nul & goto continue -goto DOS -:continue +rem in DOS '^' is just a normal character +if not ^x==x goto DOS rem Now check for Windows NT which is also not supported ver | find "NT" @@ -56,9 +54,9 @@ path %TEXDIR%tlpkg\tlperl\bin;%TEXDIR%bin\win32;%path% perl "%TEXDIR%install-tl" --portable if errorlevel 1 goto failedinit -rem start command interperter -set PROMPT=TL $P$G -%COMSPEC% /k +rem start new command interperter with customized prompt and window title +rem reuse existing console but without blocking the parent process +start "TL-SHELL" /b "%ComSpec%" /k "title TL-SHELL& prompt TL %prompt%" goto :eof :failedinit @@ -68,8 +66,8 @@ exit /b 1 :UNC echo Cannot run from UNC path. -echo Map network drive to a drive letter and rerun the installer. -echo Use pushd/popd commands for temporary mapping. +echo Map network drive to a drive letter and rerun the script. +echo You can use pushd/popd commands for temporary mapping. pause exit /b 1 |