echo offfor /L %%i in (1,1,%1) do echo %%i create file named loop1.cmdrun the following command in console loop1.cmd 10will output12345678910--for more 'for' usage type 'for /?'