1.- @echo off
- for /l %%i in (1,1,100) do echo %%i
- pause>nul
复制代码 2.- @echo off
- for /l %%i in (1,1,50) do set /a b=%%i+%%i-1&call echo %%b%%
- pause>nul
复制代码 3.- @echo off
- for /l %%i in (1,1,50) do set /a b=%%i+%%i-1&call echo %%b%%
- pause>nul
复制代码 4.
一、- @echo off
- for /f "tokens=*" %%i in (f:\test.txt) do echo %%i
- pause>nul
复制代码 二、- @echo off
- for /f "tokens=2" %%i in (f:\test.txt) do echo %%i
- pause>nul
复制代码
[ 本帖最后由 nopr 于 2009-8-2 16:38 编辑 ] |