code:
set Xcoord=0 set Ycoord=0 set /A Ycoord=%Ycoord%+1 echo !Ycoord! set position=X%Xcoord%Y%Ycoord% echo !position!
what i get: