echo
off
for / L %%i in ( 1 , 1 , %1 ) do echo %%i
for / L %%i in ( 1 , 1 , %1 ) do echo %%i
create file named loop1.cmd
run the following command in console
- loop1.cmd 10
will output
1
2
3
4
5
6
7
8
9
10
--
for more 'for' usage type 'for /?'