And bill, the op already said that the problem was solved, so I don't understand why there are other solutions that don't function as properly poster after the fact.
The following code does not work:
@echo off
for /l %%a in (0,1,ENDNUMBER) do type file%%a.txt >> endresult.txt
------------------------------------------------
Casper did nothing wrong by offering a simple one line solution. The readers of this board enjoy more than one solution.
Please thank Casper for his insight:
The Casper code works:
cat *.txt > newfile.txt
______________________________
Geek,
I have no idea what Netsking, the original poster, intentions are.
Why does Netsking, OP, need all the text files in a folder in one large file?
Perhaps for his Boss?
Thanks Ceek for your insight. A few people understood the problem and the solutions. It was really quite a simple problem. Casper showed us the simple solution.
Thanks Casper.