@echo off
setlocal EnableExtensions

set "BIN=%~dp0"
set "ROOT=%BIN%.."
if "%ROOT:~-1%"=="\" set "ROOT=%ROOT:~0,-1%"
set "LAUNCHER=%ROOT%\tezz.cmd"

if not exist "%LAUNCHER%" (
  echo bin\tezz.cmd: missing %LAUNCHER%
  exit /b 1
)

call "%LAUNCHER%" %*
exit /b %ERRORLEVEL%
