Subj : Errorlevels problem
To : Bj�rn Felten
From : mark lewis
Date : Sat Nov 12 2016 11:49 am
12 Nov 16 07:10, you wrote to Manuel Adorni:
MA>> if errorlevel 235 goto B300
MA>> if errorlevel 236 goto B1200
BF> You need to check the error levels highest first.
damn! i completely missed that... it is, however, one of the reasons why i like
4DOS/4OS2/4NT...
IF errorlevel EQ 42 GOTO do_42
IF errorlevel EQ 95 GOTO do_95
IF errorlevel EQ 69 GOTO report_69
IF errorlevel LE 30 AND errorlevel NE 0 GOTO FD_ERR_%?
then you can list the errorlevels in order of most used to least used and have
the script execute faster... note the last one branches on any errorlevel less
than or equal to 30 which are all reserved for frontdoor exits... instead of
having a line to check each errorlevel, we use the %? which contains "the
external program exit code"... then later in the script we might have a section
like
another thing that could be done (without 4*) is to call dobbs.bat... with 4*,
i actually parse dobbs.bat as a data file instead of using it as a script...
then i use that parsed information to start RA with... in this way i have only
one script file to deal with for running the mailer and the BBS... i used to
also execute tossing from it but switched to background tossing using a
scheduler to check if there's a semaphore indicating mail has arrived and needs
processing...
)\/(ark
Always Mount a Scratch Monkey
Do you manage your own servers? If you are not running an IDS/IPS yer doin' it
wrong...
... I sprinkled baking powder over a couple of potatoes, it didn't work.
---
* Origin: (1:3634/12.73)