- May
- 382
- 2
Running the batch file at the bottom, I expected to see output
Instead I got
WAD, DWIM or something else? I wasn't able to ascertain if the help file does say that %[name] and %name% are equivalent forms, I thought they are under all circumstances.
TCC LE 13.03.38 Windows 7 [Version 6.1.7601]
Code:
(ABC)
() ()
Code:
(ABC)
(Xcon) ()
Code:
@echo off
setlocal
for %i in (X) (gosub LBL "%i")
endlocal
quit
:LBL
set icon=ABC
echo (%icon%)
unset icon
echo (%icon%) (%[icon])
return