Quantcast
Viewing all articles
Browse latest Browse all 1704

%@REPEAT doesn't die gracefully or throw errormessage or errorlevel when fed negative number

Perhaps there's some holistic reason why this isn't a bug... That always seems to be the case.

But script execution is being halted without finishing AND without setting any kind of errorlevel....

@echo off
echo Alpha
echo %@REPEAT[X,1] for all!
echo Beta
echo %@REPEAT[X,0] for all!
echo Omega
echo %@REPEAT[X,-1] for all!
echo Jingle bells?


Execution simply stops when repeat is given a -1 [which can be a result of various code...

Read more

Viewing all articles
Browse latest Browse all 1704

Trending Articles