Hi Gerald.
On Apr. 13, 1998 at 20:54 hours you wrote to Barry Block:
GM> provide more accurate detail of what the problems are, one must
GM> live with the fact that all errors are lumped into errorlevel 255.
Maybe CHKDSK does that (I don't use the DOS-one), lumping _all_ errors into
255, but with other programs you should be carefull. ERRORLEVEL without any
operator checks to "greater equal"!
ERRORLEVEL [operator] n
This test retrieves the exit code of the preceding external
program. By convention, programs return an exit code of 0 when
they are successful and a number between 1 and 255 to indicate an
error. The condition can be any of the operators listed above
(EQ, !=, GT, etc.). If no operator is specified, the
default is GE. The comparison is done numerically.
Greetings,
Peter Holm (pholm@dorf.ccc.or.at)
---
---------------
* Origin: Enjoy life (2:313/26.5)
|