@echo off setlocal set "C1541=C:\Program Files\GTK3VICE-3.10-win64\bin\c1541.exe" set "DISK=kernal_os.d64" rem ---- build kernal_os.prg ---- call build.bat if errorlevel 1 goto error rem ---- build vim.prg ---- call build_vim.bat if errorlevel 1 goto error rem ---- verify c1541 ---- if not exist "%C1541%" ( echo c1541.exe not found at: echo %C1541% exit /b 1 ) rem ---- create fresh D64 and write both PRGs ---- "%C1541%" -format "kernal os,01" d64 "%DISK%" if errorlevel 1 goto error "%C1541%" "%DISK%" -write "kernal_os.prg" "kernal_os" if errorlevel 1 goto error "%C1541%" "%DISK%" -write "vim.prg" "vim" if errorlevel 1 goto error echo. echo built %DISK% (kernal_os + vim) goto end :error echo build failed. exit /b 1 :end