Basically, I have 100 or so rather long .txt files that I want to make into one file. I tried "file1.txt file2.txt > newfile.txt"
but it only works for 2 files at a time. Is there a way to do it recursivley (or otherwise) to cut down the time? Thanks
-Matt
copy *.txt big.one
ren big.one big.txt
=====================================
If at first you don't succeed, you're about average.M2
M2: Nifty.. I never thought about that.
I always used:for %i in (*.txt) do type %i >>BigFile.txt
Does the same trick..
You're life savers, thanks so much. Out of curiosity though, why can't you do "copy *.txt big.txt"?
Why do you have to do the rename?
Thanks again.
-Matt
copy *.txt big.txt tends to get wrapped around the axle.
=====================================
If at first you don't succeed, you're about average.M2
That means that big.txt would be included in big.txt (Not tested, but 99% likely afaik)...
The easiest way to understand the difference is to just try it..
A little casual testing in w2k seems to indicate that CMD is smart enough to avoid this. But in DOS, IIRR [if I remember right] it's as Shroom says.
=====================================
If at first you don't succeed, you're about average.M2
| « Batch with changing varia... | Adding .1 to file names t... » |