View Single Post
  #8  
Old November 8th 09, 12:40 AM posted to microsoft.public.windowsxp.newusers
J. P. Gilliver (John)
external usenet poster
 
Posts: 5,291
Default How do you tag one file onto the end of another?

In message , Richard
writes:

"J. P. Gilliver (John)" wrote in message
...
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!
Ads