VOGONS


copy command

Topic actions

First post, by Ravetracer

User metadata
Rank Newbie
Rank
Newbie

Hi there,

i've tried to compile some old pascal code from me.
The compiling works well, but after that, i have to link it
with 2 other files.
In the good old time, i've done it with: copy /b file.exe+anotherfile+file2
How can I do this in DosBox? It doesn't work at the moment.
My version is 0.65 under SUSE Linux 10.1.

Reply 2 of 6, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

You can do the equivalent of

C:\> copy /b file.exe+anotherfile+file2 final.exe

from any Linux shell if you navigate to the DOSBox-mounted directory and issue a

$ cat file.exe anotherfile file2 > final.exe

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 3 of 6, by Ravetracer

User metadata
Rank Newbie
Rank
Newbie
MiniMax wrote:
You can do the equivalent of […]
Show full quote

You can do the equivalent of

C:\> copy /b file.exe+anotherfile+file2 final.exe

from any Linux shell if you navigate to the DOSBox-mounted directory and issue a

$ cat file.exe anotherfile file2 > final.exe

Hehe, yeah right. I've forgot, that the drives are normal directories 😦 .
Hope this will work in future versions of DosBox, cause i wrote a little
batchfile to compile and link the programs.
But the workaround works fine too.
Thanks and greets from germany.

Reply 4 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

oh yeah. I intended to add that. There is a patch on sf.net which adds it, but I didn't like the way it was handled.

what is the syntax btw ? (and in which order does everything appear ?)
can stuff like

copy a+b

be done ?

Water flows down the stream
How to ask questions the smart way!

Reply 5 of 6, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

Qbix, the (partial) syntax is like the current CMD / copy command:

COPY source1+source2+sourceN destination-file

The /B flag is for binary copy (that is ignore CTRL-Z as End-Of-File marker)

The full syntax is a little more versatile. Check this link: http://www.microsoft.com/technet/archive/msdo … 1.mspx?mfr=true

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 6 of 6, by Qbix

User metadata
Rank DOSBox Author
Rank
DOSBox Author

thank you for the link MiniMax,

copy a+b

can be done apperantly.
The result will be called "a" in that case

Water flows down the stream
How to ask questions the smart way!