@ECHO OFF ECHO. ECHO Compiling HTML Help file... ECHO. IF EXIST "Build\Refmanual.chm" DEL /F /Q "Build\Refmanual.chm" > NUL "c:\Program Files (x86)\HTML Help Workshop\hhc" Help\Refmanual.hhp IF %ERRORLEVEL% NEQ 1 GOTO ERRORFAIL IF NOT EXIST "Build\Refmanual.chm" GOTO FILEFAIL ECHO. ECHO. BUILD DONE ! ECHO. PAUSE > NUL GOTO LEAVE :ERRORFAIL ECHO. ECHO. BUILD FAILED (Tool returned error) ECHO. PAUSE > NUL GOTO LEAVE :FILEFAIL ECHO. ECHO. BUILD FAILED (Output file was not built) ECHO. PAUSE > NUL GOTO LEAVE :LEAVE