Dos Loop Command Example

来源:互联网 发布:杭州思锐网络 编辑:程序博客网 时间:2024/05/28 15:55
echo off
for /L %%i in (1,1,%1) do echo %%i


create file named loop1.cmd
run the following command in console
  1. loop1.cmd 10

will output
1
2
3
4
5
6
7
8
9
10
--
for more 'for' usage type 'for /?'