You might find this link helpful:
http://www.robvanderwoude.com/errorlevel.php
I'm no expert on Win .bat files, but on WinXP (at least on my machine), ECHO.%ERRORLEVEL% will print last errorlevel. There is some Windows versions specific stuff about this. I think you'll find something helpful in the above link.