Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Computing > Alt Msdos Batch Nt > Re: question ab...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 3327 of 3395
Post > Topic >>

Re: question about errorlevels

by Timo Salmi <ts@[EMAIL PROTECTED] > Jul 4, 2008 at 09:30 AM

.... 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
 




 2 Posts in Topic:
Re: question about errorlevels
Timo Salmi <ts@[EMAIL   2008-07-04 09:30:56 
Re: question about errorlevels
"billious" <  2008-07-04 15:01:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Aug 29 22:39:38 CDT 2008.