Jenkins checks the exit code. Run your batch file and try
echo %errorlevel%
Your batch file needs to exit with a non 0 code, i.e.
exit 1
Be aware jenkins can only check the errorlevel left by the last command so the following will succeed because the echo returns 0
somebadcommand
echo hello
Hope that helps