[Prev][Next][Index][Thread]

Re: does executor/dos set ERRORLEVEL if something goes wrong?



>>>>> "Donald" == Donald Burr <d_burr@ix.netcom.com> writes:

    Donald> Just curious, but does E/DOS set ERRORLEVEL to something
    Donald> other than 0 if something goes wrong (i.e. it crashes)?
    Donald> I'm writing some batch files that could really make use of
    Donald> this feature (mainly to tell the user that something went
    Donald> wrong and to save the traceback for him/her).

Executor will do an exit(-1) on a crash, but I don't know what
ERRORLEVEL is.  Maybe djgpp's exit implementation sets that up, maybe
not.

-Mat


References: