@echo on
setlocal

cd /d %~dp0
for /f "delims=" %%i in ('cd') do set CURRENT=%%i

java -Xmx256M -jar lib\SpellChecker.jar -hm >log\CheckResult_msg.txt
type log\CheckResult_msg.txt
findstr "MISSPELT WORD" log\CheckResult_msg.txt>nul
IF ERRORLEVEL 1 (
 exit /b 0
)
exit /b 1
endlocal

