Copy Command- Concatenate

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Concatenate does not seem to work. I have two files about 2KB each, and when
I try to concatenate them into one file I end up with a file smaller than the
original.

ie file1+file2 newfile

file1=2KB
file2=2KB

newfile=500B

Any help will be greatly appreciated.

Jimme Quinn Ross
 
Jimme Quinn Ross said:
Concatenate does not seem to work. I have two files about 2KB each, and when
I try to concatenate them into one file I end up with a file smaller than the
original.

ie file1+file2 newfile

file1=2KB
file2=2KB

newfile=500B

Are they binary files, by any chance?

Try:
copy file1 /b + file2 /b newfile

The help for copy appears to suggest that newfile can also take a /b switch,
though I'm not sure what difference that would make.

Phil
--
Philip D. Barila Windows DDK MVP
Seagate Technology LLC
(720) 684-1842
As if I need to say it: Not speaking for Seagate.
E-mail address is pointed at a domain squatter. Use reply-to instead.
 
Phil Barila said:
Are they binary files, by any chance?

Try:
copy file1 /b + file2 /b newfile

The help for copy appears to suggest that newfile can also take a /b switch,
though I'm not sure what difference that would make.

Phil
--
Philip D. Barila Windows DDK MVP
Seagate Technology LLC
(720) 684-1842
As if I need to say it: Not speaking for Seagate.
E-mail address is pointed at a domain squatter. Use reply-to instead.


Thanks! As I think of it, the last time I concatnated files they were ASCII text so the /b switch was not needed. Looks obvious to me now. Again thank you.

Jimme
 
Back
Top