I was bored so I tried writing simple code that generates a text document with a list of numbers starting from 1 and counts forever. This code here says "Echo is OFF" on the first line, "10" on the second line, "11" on the third, and so on. Why does it say "echo is off" and why doesn't it start counting from one? Thanks.
set number=0
echo %number%>numberlist.txt
goto countloop
:countloop
cls
echo The current number is %number%
set /a number=%number%+1
echo %number%>>numberlist.txt
goto countloop