
CODE: [Copy to clipboard]请问怎么将分段的e.txt内容和f.txt的内容分别存放到b.txt和c.txt?.........
e.txt....
terytry4 e5645 23456 reg334r
kjtyr er4wersaw w45te434 fwerte
342344536 4564767 rewre
..........
f.txt.....
tryuirtw ewasre325234 44564574745
sdfwae ae545645645 n47444
..........
e.txt....
6756453..........
..........
f.txt.....
078564232
............
......./
e.txt....
iyuiy
343647 4758
f.txt.....
89076756 65675
......
CODE: [Copy to clipboard][ Last edited by tireless on 2008-11-6 at 14:48 ]@echo off & setlocal EnableDelayedExpansion
for /f "skip=1 delims=" %%a in (a.txt) do (
if "%%a" equ "e.txt...." (set fname=b) else if "%%a" equ "f.txt....." (set fname=c) else (
>>!fname!^.txt echo %%a
)
)
endlocal
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |