@echo off
rem autoexec.bat for DOSEMU2 + FDPP
path %DOSEMUDRV%:\dosemu
if not "%SHELLDRV%" == "" path %PATH%;%SHELLDRV%:\
if not "%FREEDOSDRV%" == "" path %PATH%;%FREEDOSDRV%:\bin;%FREEDOSDRV%:\gnu
if "%USERDRV%" == "" echo "Warning: USERDRV not set"
if "%USERDRV%" == "" goto notemp
if not "%USERDRV%" == "" set TEMP=%USERDRV%:\tmp
if not exist %TEMP%\nul mkdir %TEMP%
:notemp
rem first run external plugins. -E commands may depend on them.
if "%XBATDRV%" == "" goto noxbat
if not exist %XBATDRV%:\bat\nul goto noxbat
path %PATH%;%XBATDRV%:\bat
for %%b in (%XBATDRV%:\bat\dosrc.d\*.bat) do call %%b
:noxbat
rem run dosemu2 plugins, including vars and -E commands.
for %%b in (%DOSEMUDRV%:\dosemu\dosrc.d\*.bat) do call %%b
