if errorlevel 1 call doit.bat
でできないかな
俺は試しとらんが