@echo off
system %1 %2 %3
if ERRORLEVEL 1 exitemu 1
if not "%DOSEMU_SYS_DRV%" == "" %DOSEMU_SYS_DRV%:
if ERRORLEVEL 1 exitemu 1
if not "%DOSEMU_SYS_DIR%" == "" cd %DOSEMU_SYS_DIR%
if ERRORLEVEL 1 exitemu 1
if "%DOSEMU_SYS_CMD%" == "exit" goto cont
if "%DOSEMU_SYS_CMD%" == "" goto done
if not "%DOSEMU_BOOT_CLS%" == "" cls
if not "%DOSEMU_BOOT_SHOWWIN%" == "" xmode -map -1
call %DOSEMU_SYS_CMD%
set SHELL_LOADHIGH_DEFAULT=
:cont
if "%DOSEMU_EXIT%" == "1" exitemu %ERRORLEVEL%
:done
