.... wrote:
> On your page http://www.netikka.net/tsneti/info/tscmd038.htm,
at the
> bottom, you have the code
> for %%e in (0 1 2 3 4 5 6 7 8 9) do (
> if %errorlevel% EQU %%e echo The errorlevel is %%e)
>
> Is there any reason why echo The errorlevel is %errorlevel% wouldn't
> accomplish the same, even showing errorlevels above 9?
Of course. But that is not the point. The point is that one may wish to
cover a certain range or levels, and one may wish to take action
depending one the level. That is why the more involved formulation.
P.S. Thank you for the email, but I prefer Usenet news on batch/script
and other non-profession related matters. Hence I am posting my
responses, when any.
All the best, Timo
--
Prof. Timo Salmi ftp & http://garbo.uwasa.fi/
archives 193.166.120.5
Department of Accounting and Business Finance ; University of Vaasa
mailto:ts@[EMAIL PROTECTED]
<http://www.uwasa.fi/~ts/>
; FI-65101, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.htm