第一题:- for /l %%i in (1,1,100) do @echo %%i
复制代码 第二题:- for /l %%i in (1,2,100) do @echo %%i
复制代码 第三题:- @echo off
- set var=bbs bathome.net
- for /f "tokens=1-3 delims= " %%i in ("%var%") do (
- echo %%i
- echo %%j
- echo %%k
- )
复制代码 第四题:
1,- for /f "delims=" %%i in (test.txt) do @echo %%i
复制代码 2,- for /f "tokens=2" %%i in (test.txt) do @echo %%i
复制代码
|