Welcome!

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

SignUp Now!

ON ERROR terminates DO loop.

May
12,663
157
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