@ECHO OFF rem Sample main menu rem Usage: edit and copy to the root of the installation. rem For a custom submenu for the tray menu, see tl-tray-menu-custom.bat. SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION set tlroot=%~dp0 path %tlroot%bin\win32;%path% :menuloop set ans= cls echo === TeX Live Menu === echo. echo 1 TeX Live command prompt echo 2 Managing the installation if exist %tlroot%bin\win32\texworks.exe ( echo 3 TeXWorks ) echo Q Quit echo. set /p ans="Make a choice: " if "%ans%"=="1" ( cmd /k "set prompt=TL $P$G & cls" exit ) if "%ans%"=="2" ( echo Starting tlmgr echo Please be patient wscript %tlroot%bin\win32\tlmgr-gui.vbs exit ) if "%ans%"=="3" ( if not exist %tlroot%bin\win32\texworks.exe ( echo TeXworks not available goto :menuloop ) start texworks exit rem goto :eof ) if "%ans%"=="Q" ( exit ) if "%ans%"=="q" ( exit ) goto :menuloop