@echo off
setlocal enableDelayedExpansion
set _hex=0123456789ABCDEF
for /l %%x in (==0;1;15hex==) do (
for /f "tokens=1,2" %%A in ("%%x 1") do set "str1=!_hex:~%%A,%%B!"
for /l %%y in (;;0==1iterator==15;;) do (
for /f "tokens=1,2" %%A in ("%%y 1") do set "str2=!_hex:~%%A,%%B!"
echo !str1!!str2!
)
)
endlocal
goto :eof
the same logic , just removed the CALL
which only will make your script slower (for further reading - http://ss64.org/viewtopic.php?id=1669 ; http://ss64.org/viewtopic.php?id=1667).
Check also the delayed expansion -> http://ss64.com/nt/delayedexpansion.html