By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!FOR can't be used in @EXEC. Example:
returns "ECHO IS OFF".Code:echo %@exec[@for ^%A in (123) echo %A] > nul
echo. %@exec[@for %%A in ( 123 ) echo %%A]
SWITCH works incorrectly from inside FOR loop: executing
returns "aaafff".Code:for %A in (123) ( switch a case a echos aaa case f echo fff endswitch )
>echo %@exec[@for ^%A in (123) echo %A] > nul
>---------
>returns "ECHO IS OFF".
Yeah, I'm wondering why I haven't tried this myself :)I believe you need to double your percent signs here
Well IFF is another multiline construct, but it works inside FOR loop.SWITCH is inherently a multiline construct, and FOR is inherently single-line. Use DO instead.