再来一个更简单的(no findstr no 逐字符 no tempfile no 变量延迟):
- @echo off
- for /l %%i in (1,1,80) do call,set "kong=%%kong%% "
- for /f "delims=" %%i in (1.txt) do (
- set "str=%%i%kong%"
- call,set "str=%%str:~,80%%"
- call,set "str=%%str:%%i=%%"
- call,set "str=%%str: = %%"
- call,echo %%str%%%%i
- )
- pause>nul
复制代码
[ 本帖最后由 batman 于 2008-8-2 12:04 编辑 ] |