Re: How do you tag one file onto the end of another?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



In message <OaWOX88XKHA.1372@xxxxxxxxxxxxxxxxxxxx>, Richard <richard@xxxxxxxxxx> writes:

"J. P. Gilliver (John)" <G6JPG@xxxxxxxxxxxxxxxxxxx> wrote in message
news:Ta5FQGaKTB5KFwoY@xxxxxxxxxxxxxxxxxxxxxx
I know one way to join files: in a command box,

copy /b filea+fileb filec

. However, if filea is huge, this takes a noticeable time, because
the entirety of filea is copied to filec (followed by fileb,
obviously). I know with text files, you can just append things to
another file - e. g.

dir >> filea

will I think append a directory listing to filea, or

type fileb >> filea

will append fileb to filea - but only if it's a text file.

Anyone know how to concatenate arbitrary files, without involving a third
file?

To append fileB to fileA:

copy /b fileA+fileB fileA

FWIW. --Richard



Won't that still go through the motions of copying every byte of fileA, even if it's putting the results back in the same place?
--
J. P. Gilliver. UMRA: 1960/<1985 MB++G.5AL-IS-P--Ch++(p)Ar@T0H+Sh0!:`)DNAf
** http://www.soft255.demon.co.uk/G6JPG-PC/JPGminPC.htm for ludicrously
outdated thoughts on PCs. **

Archduke Ferdinand found alive - First World War a mistake!
.



Relevant Pages