交第一套答案
1- @echo off
- for /l %%i in (1,1,100) do echo %%i
- pause
复制代码 2- @echo off
- for /l %%i in (1,2,100) do echo %%i
- pause
复制代码 3- @echo off
- for /l %%i in (1,1,3) do echo bbs bathome.net
- pause
复制代码 4-1- @echo off
- for /f "delims= tokens=1,2,3" %%i in (f:\test.txt) do echo %%i
- pause
复制代码 4-2- @echo off
- for /f "tokens=2" %%i in (f:\test.txt) do echo %%i
- pause
复制代码
|