windows bat exit code fix

Return exit code 1 in windows bat script if java application exits with
a return code greater than 0.  Update windows bat regression tests to
check the returned code.
it seems weird to mix tabs and spaces. i know that's what the rest of the file is doing, but i think it'd be nice to replace all the tabs with spaces