@echo off for /f "delims=" %%r in ('cscript /nologo "build.vbs"') do ( if 0 NEQ %%r ( echo "build fail !" %%r ) )