@ECHO OFF rem Copy to the root of the TeX Live installation and customize as needed, rem e.g. by substituting different editors. rem The system tray menu has already taken care of the searchpath. SETLOCAL ENABLEEXTENSIONS SETLOCAL ENABLEDELAYEDEXPANSION set tlroot=%~dp0 :menuloop set ans= cls echo === TeX Live Menu === echo. echo 1 TexMakerX echo 2 Emacs echo 3 Notepad echo Q Quit echo. set /p ans="Make a choice: " if "%ans%"=="1" ( %tlroot%texmakerx\texmakerx.exe exit ) if "%ans%"=="2" ( rem load emacs with the included initialization file _emacs %tlroot%emacs\bin\emacs.exe -q -l %tlroot%emacs\_emacs exit ) if "%ans%"=="3" ( %windir%\notepad.exe exit ) if "%ans%"=="Q" ( exit ) if "%ans%"=="q" ( exit ) goto :menuloop