[Windows Mobile] mac_es:
If you want build-missed.txt the bat should look like this (color blue changes)

Also if you put an start before RomUpdateUtility the kitchen will be usable

during the flash process (color red changes).

@echo off
cd..

set SYSBUILD=21042
set XIPBUILD=21041
set EXTBUILD=20756

set MERGILO= ..\TOOLS\IMGFS\NBMerge -kaiser OS-new.nb
set LOCALE=0410
set BUILD=Premium
set DPI=DPI_192
set RES=dpi_192_resh_480_resv_640
set DEVICE=DIAMOND
set OLDKERNEL=1

set DEVICEID=DIAM*****
set VERSIONID=2.0.00.00
set LANGID=0410
set CHUNKSIZE=64
set OSIDVALUE=0x400

set LOG_FILE=Build_log.txt
[COLOR="RoyalBlue"]set LOG_MISSED=build-missed.txt [/COLOR]

set DSM=723fb954-d931-4348-b672-82a188e587b5.dsm

set ROMHDR=ROM\%device%\romhdr.bin

set XIP_PATTERNS=ROM\%DEVICE%\%xipbuild%\*;ROM\SHARED\%xipbuild%\*

set OEM_PATTERNS=OEM\%device%\COMMON\*;OEM\%device%\%locale%\*

set SYS_PATTERNS=SYS\%sysbuild%\SHARED\COMMON\*;SYS\%sysbuild%\SHARED\%LOCALE%\*;SYS\%sysbuild%\%dpi%\COMMON\*;SYS\%sysbuild%\%dpi%\%LOCALE%\*;SYS\%sysbuild%\%res%\COMMON\*;SYS\%sysbuild%\%res%\%LOCALE%\*

set EXT_PATTERNS=EXT\%DEVICE%\%EXTBUILD%\*\*;EXT\%DEVICE%\COMMON\*\*;EXT\SHARED\*\*

del %log_file%

set DSM_TEMPLATE=%dsm%
set DSM_INCLUDES=*

TOOLS\platformrebuilder.exe | tools\mtee /+ %LOG_FILE%
if not "%errorlevel%"=="0" goto error

REM ===========================================================================================

@echo off
cd Temp
echo Copying OS.nb.payload...
copy ..\ROM\%device%\OS.nb.payload OS.nb.payload
if not "%errorlevel%"=="0" goto error

REM ===========================================================================================

echo.
..\TOOLS\implantxip -xip xip.bin -payload OS.nb.payload | ..\tools\mtee /+ ..\%LOG_FILE%
if not "%errorlevel%"=="0" goto error

REM ===========================================================================================

echo.
..\TOOLS\IMGFS\ImgfsFromNb OS.nb.payload imgfs.bin | ..\tools\mtee /+ ..\%LOG_FILE%
if not "%errorlevel%"=="0" goto error

..\TOOLS\IMGFS\ImgfsFromDump imgfs.bin imgfs-new.bin | ..\tools\mtee /+ ..\%LOG_FILE%
if not "%errorlevel%"=="0" goto error

..\TOOLS\IMGFS\ImgfsToNb imgfs-new.bin OS.nb.payload OS-new.nb.payload -bigstoragemove | ..\tools\mtee /+ ..\%LOG_FILE%
if not "%errorlevel%"=="0" goto error

rem -------------------------------------------------------------------------------------------
%mergilo%
rem -------------------------------------------------------------------------------------------

if not "%errorlevel%"=="0" goto error

REM ===========================================================================================

del imgfs-new.bin
del imgfs.bin
del OS.nb.payload
del OS-new.nb.payload

REM ===========================================================================================

REM ===========================================================================================

echo.
cd..
cd RELEASE_%device%
if exist "RUU_signed.nbh" del /q RUU_signed.nbh
if not "%errorlevel%"=="0" goto error
rem cd..
rem cd temp
echo executing NBHUtils to build nbh file...

rem ---------------------------------------------------
..\tools\nbhutil -model %deviceid% -ver %versionid% -lang %langid% -chunk %chunksize% -nogui -e -i %osidvalue% ..\temp\os-new.nb -b ruu_signed.nbh | ..\tools\mtee /+ ..\%LOG_FILE%
rem ---------------------------------------------------

if not "%errorlevel%"=="0" goto error

cd..
[COLOR="RoyalBlue"].\tools\grep -B 1 -in "Error!" .\%LOG_FILE% > .\%LOG_MISSED%
echo. >> .\%LOG_MISSED%
.\tools\grep -B 1 -in "Warning: Overwriting" .\%LOG_FILE% >> .\%LOG_MISSED%[/COLOR]

cd release_%device%

echo.
dir RUU_signed.nbh
echo.

REM ===========================================================================================

echo.
echo Done!!!
echo.

[COLOR="Red"]start [/COLOR]ROMUpdateUtility.exe
cd..

goto end

:error
echo.
echo ERROR! (errorlevel: %errorlevel%)

:end

grep binary is here: http://www.interlog.com/~tcharron/grep.html