1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
@echo off setlocal cd /d %~dp0 set err=0 for /f "tokens=*" %%d in ('dir /b/a:d') do ( call %%d\build.bat fc %%d\EXP=* %%d\OUT=* if errorlevel 1 ( set err=1 color 47 pause color ) ) if %err% == 1 color 0C if %err% == 0 color 0A pause color