The == treats it as a literal:
if 010==8 echo IF supports octal!
Thanks for the info.
If you want to put out a continous sequence you can do this:
@echo off & setLocal EnableDelayedExpansion
set /p min=min
set /p max=max
for /L %%a in (!min! 1 !max!) do (
If at first you don't succeed, you're about average.