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:t...@uwasa.fi <http://www.uwasa.fi/~ts/> ; FI-65101, Finland
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.htm
Or indeed, since this is the specific NT group, why this code hasn't been
modified to
for /l %%e in (0,1,255) ...
Then there's the occasional instance where errorleve is set outside of the
traditional range..
:)
(yes - the object is to demonstrate how to USE errorlevel, not simply how to
display it)