Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - ian_asia

#1
When using the batch file that comes with DictionaryForMIDs I see the batch file has two "pause" commands coded in. When I run java programs in a batch files I have in some error catching code like this.

if  %errorlevel% neq 0 set errormessage=echo Big Problem with DictionaryGeneration, the errorlevel set to %errorlevel%
if  %errorlevel% neq 0 set errorpause=pause
%errormessage%
%errorpause%
set errorpause=

If no errors occur then the batch file does not pause. What most of us want I think.

However DictionaryGenerator does not set the %errorlevel% even when it fails. I don't write Java but I imagine that this is trivial. In contrast JarCreator does set the %errorlevel% on a failure.

Can this be fixed?

Ian