日期:2014-05-17  浏览次数:20681 次

批处理:汇总TXT文件
我想把一个文件夹下面的所有TXT文件汇总到一个txt文件中,用批处理怎么实现!
麻烦各位帮帮忙!

------解决方案--------------------
把这个批处理放在需要处理的文件夹里面执行

BatchFile code

@echo off
for %%a in (*.txt) do (
 if not exist tmp.txt (copy /y %%a tmp.txt) else (copy /y /b tmp.txt+%%a)
)
pause