Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

ON ERROR terminates DO loop.

May
12,834
163
Simple BTM:

Code:
setlocal

::on error echo SYSERR = %_syserr

do x in /d"c:\" /s *.ico
    echo %x
enddo

As it is, the DO loop keeps going after access_denied errors. If I uncomment the ON ERROR statement, the BTM terminates on the first error.

What's up with that?
 

Similar threads

Back
Top