@echo off setlocal set "ROOT=%~dp0" set "GAME=%ROOT%rebuild\remorse\out\build-controller-verify\remorse_game.exe" if not exist "%GAME%" ( echo Could not find the rebuild executable: echo %GAME% pause exit /b 1 ) pushd "%ROOT%" "%GAME%" %* set "RESULT=%ERRORLEVEL%" popd exit /b %RESULT%