呵呵,多谢提醒,确实没看下面,又重新给了个代码,写的有点麻烦,见笑了- @echo off&setlocal enabledelayedexpansion
- for /f "delims=" %%i in (a.txt) do set /p=%%i<nul >>a1.txt
- for /f "delims=" %%j in (b.txt) do set /p=%%j<nul >>b1.txt
- for /f "delims=" %%k in (c.txt) do set /p=%%k<nul >>c1.txt
- set /p c=<a1.txt
- set /p a=<b1.txt
- set /p b=<c1.txt
- echo %c% >d1.txt
- echo %a% >>d1.txt
- echo %b% >>d1.txt
- set n=0
- :1
- set /a n+=1
- (for /f "delims=/ tokens=%n%" %%a in (d1.txt) do echo %%a) >>!n!.txt&&goto 1
- pause
- del a1.txt&del b1.txt&del c1.txt&del d1.txt
- pause
复制代码
[ 本帖最后由 wc726842270 于 2010-11-10 23:37 编辑 ] |