
CODE: [Copy to clipboard][ Last edited by zw19750516 on 2008-4-22 at 03:52 AM ]@echo off&setlocal enabledelayedexpansion
:begin
set /a n+=1
if %n% equ 3 pause>nul&goto :eof
for /f "tokens=%n%" %%i in (test.txt) do (
set /a m+=1
set str=!str!%%i
if !m! equ 2 echo !str!&set m=0&set str=
)
goto begin
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |