Please consider the following example:
@echo off
:: question: why is test1 correct but test2 not?
:: (tested on Windows XP)
echo test1:
if 1 equ 1 (
rem t1(): test1 works
)
echo ...works
echo test2:
if 1 equ 1 (
:: t2(): test2 throws a syntax error
)
Could somebody explain me why test2 fails?
Thank you very much in advance!
Best regards,
Thorsten