@echo off cd /D "%~dp0" call build.bat if %errorlevel% == 0 ( call editor.bat )