why does help for copy mention /B so much in parameters?
Posted: 06 Oct 2024 01:11
why does help for copy mention /B so much in parameters?
Let's say I create a file , with an 1A(EOF) character in there. I can view it with the more command.
So the file is
If I combine it with itself to make a new file g.g
C:\Users\User>copy /Y /B c:\crp\a.a + c:\crp\a.a g.g
c:\crp\a.a
c:\crp\a.a
1 file(s) copied.
C:\Users\User>
Then that works
So why is it that the COPY /? documentation makes it look like you have to include /B lots of times
Like before all source files. And then after each source file and after the destination file
It seems to me that it only needs to be put in once. That is, before all source files.
Let's say I create a file , with an 1A(EOF) character in there. I can view it with the more command.
Code: Select all
C:\Users\User>echo 616263 | xxd -r -p >c:\crp\a.a
C:\Users\User>type c:\crp\a.a
abc
C:\Users\User>echo 6162631A646566 | xxd -r -p >c:\crp\a.a
C:\Users\User>type c:\crp\a.a
abc
C:\Users\User>more c:\crp\a.a
abc→def
Code: Select all
C:\Users\User>xxd c:\crp\a.a
00000000: 6162 631a 6465 66 abc.def
C:\Users\User>copy /Y /B c:\crp\a.a + c:\crp\a.a g.g
c:\crp\a.a
c:\crp\a.a
1 file(s) copied.
C:\Users\User>
Then that works
Code: Select all
C:\Users\User>more g.g
abc→defabc→def
C:\Users\User>xxd g.g
00000000: 6162 631a 6465 6661 6263 1a64 6566 abc.defabc.def
C:\Users\User>
Like before all source files. And then after each source file and after the destination file
Code: Select all
COPY [/D] [/V] [/N] [/Y | /-Y] [/Z] [/L] [/A | /B ] source [/A | /B]
[+ source [/A | /B] [+ ...]] [destination [/A | /B]]