I think that you are forgetting something important.
"copy" command, is text-oriented, not file-oriented, so much.
Either use "COPY /B" (the /B for Binary file), or use XCOPY, although I don't know if XCOPY can concatenate files, like you seem to be doing here with the COPY command.
Sorry, tried to help.Thanks, but I don't think that's correct.
C:\Users\Admin>help copy
Copies one or more files to another location.
COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]
source Specifies the file or files to be copied.
/A Indicates an ASCII text file.
/B Indicates a binary file.
/D Allow the destination file to be created decrypted
destination Specifies the directory and/or filename for the new file(s).
/V Verifies that new files are written correctly.
/N Uses short filename, if available, when copying a file with a
non-8dot3 name.
/Y Suppresses prompting to confirm you want to overwrite an
existing destination file.
/-Y Causes prompting to confirm you want to overwrite an
existing destination file.
/Z Copies networked files in restartable mode.
/L If the source is a symbolic link, copy the link to the target
instead of the actual file the source link points to.
The switch /Y may be preset in the COPYCMD environment variable.
This may be overridden with /-Y on the command line. Default is
to prompt on overwrites unless COPY command is being executed from
within a batch script.
To append files, specify a single file for destination, but multiple files
for source (using wildcards or file1+file2+file3 format).
Sorry, tried to help.
But let me tell you this, COPY command, without /B, will stop reading from a file, if it encounters a CTRL-Z (EOF) marker. Which are not uncommon in binary files.
Edit: Look at it this way, if what I am telling you is B.S., then why do they have the "/B" (Binary) option at all? Think for a bit.
Edit: Lastly, did you even try it, to see if it fixed the problem? Or just go to the web, to attempt to disprove me?
Ever think, that perhaps YOUR response was insulting to me, being an old-school DOS die-hard, and knowing these commands in and out, and you choosing (still?) to instead look up some web reference, rather than use the built-in HELP command in Windows COMMAND PROMPT, to look up the arguments (to the COPY command), to see if I was correct? And to do that, rather than simply actually TRY what I suggested, to see if it worked? Heavens no, we wouldn't want to actually get helped, it's more fun to complain that none of the suggestions work. :|You raise a fair question, though, about /b; I answered your rather insulting 'think for a bit' by checking xcopy, which was explained by being about multiple files/directories, but not the /b issue. You might well turn out to be right about that.
Ever think, that perhaps YOUR response was insulting to me, being an old-school DOS die-hard, and knowing these commands in and out, and you choosing (still?) to instead look up some web reference, rather than use the built-in HELP command in Windows COMMAND PROMPT, to look up the arguments (to the COPY command), to see if I was correct? And to do that, rather than simply actually TRY what I suggested, to see if it worked? Heavens no, we wouldn't want to actually get helped, it's more fun to complain that none of the suggestions work. :|
You think I'm insulting, when I give you the straight answer, and you refuse to accept it as correct; I think that sometimes, you're just trolling.
So, I guess, we'll have to disagree here. And try not to ban people that are helpful, and try not to insult them at the same time that they are helping.
Oh, you did try it. I'm sorry that I accused you of trolling then. And I'm sorry I came across as insulting. I guess I knew what I was talking about, and when I gave you the answer in post 2, and then in post 3, you said that I was incorrect, because of some "web reference", well, I guess I felt insulted. That I was trying to help, gave you a straight answer, and it seemed to me that you were more interested in "proving me wrong" than solving the problem. I'm sorry that I came across as a "butt" again. It is a bad habit of mine.As I said in post 7, I did try it with /b, and that did solve it. This is on the brand new replacement disk. As I said, I think you correctly identified the issue as that EOF condition, which I wouldn't expect to be as rare as it is. I've copied dozens of similar binary files from the same program and don't recall any running into it before. Thanks again for helping.
Just a note, I wrote most of the following posts after post 7, before reloading the thread and reading post 7, so now I look like more of a "butt". Oh well.Just re-tried it, same problem, to confirm nothing has changed; then with /b, and it copied the full file, which suggests you were quite right. I hadn't even looked at the command options for over a decade, so I'd forgotten there was a /b, as copy always has worked fine. Looks like you identified the issue as that , good going.
The command is a bit unclear. It has the /a for ASCII text files, and /b for binary files, but works without either, begging the question, how does it treat files then? It simply says 'file', and doesn't mention the EOF issue you identified.
Oh, you did try it. I'm sorry that I accused you of trolling then. And I'm sorry I came across as insulting. I guess I knew what I was talking about, and when I gave you the answer in post 2, and then in post 3, you said that I was incorrect, because of some "web reference", well, I guess I felt insulted. That I was trying to help, gave you a straight answer, and it seemed to me that you were more interested in "proving me wrong" than solving the problem. I'm sorry that I came across as a "butt" again. It is a bad habit of mine.
And I wasn't wrong there. The COPY command respecting EOF characters embedded in files by default DOES make it naturally text-oriented.What you got wrong was in saying that copy is 'text oriented, not file oriented'. That's not a very apt description, and contradicts years of using it on thousands of non-text files.
Old school smackdown!!!! For a second I thought I traveled back to 1995.😀
I don't think there was any 'smackdown' here. We discussed why suddenly a copy command that had long worked, didn't on one file.
One of you got a bit heated in the beginning, and it wasn’t VL....,
Looks like you're trying to project your personality issues onto people. Maybe you should find another thread.