for %%i in (a,g,b,r,h,y) do ( echo %%i )
输出:a,g,b,r,h,y
set var=0 for /l %%i in (1,1,100) do ( set /a var+=1 )
输出100