@echo off REM Run the exe with output captured. Window does not auto-close. setlocal cd /d "%~dp0" echo Running sephiria_inv.exe ... echo. sephiria_inv.exe > sephiria_inv_console.log 2>&1 set EC=%errorlevel% echo. echo === sephiria_inv.exe exited with code %EC% === echo. echo --- sephiria_inv_console.log --- if exist sephiria_inv_console.log type sephiria_inv_console.log echo --- end console.log --- echo. echo --- sephiria_inv_startup.log --- if exist sephiria_inv_startup.log type sephiria_inv_startup.log echo --- end startup.log --- echo. echo Press any key to close this window. pause > nul endlocal