How to copy three files onto a disk

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
beyondsociety

How to copy three files onto a disk

Post by beyondsociety »

I know how to copy two files to a disk using partcopy. How would I add a third file to the disk?

I have a bootsector that loads the kernel and I am going to have another program that the kernel switches to for protected mode. I know how to set up the files.
beyondsociety

Re:How to copy three files onto a disk

Post by beyondsociety »

Is there a way to link two files into one?. So that I would be able to copy the two files to the floppy.

Because with partcopy , you can only copy two files and not three.
beyondsociety

Re:How to copy three files onto a disk

Post by beyondsociety »

Would copying the three files to a floppy disk and create a .img file using partcopy and then copy it using rawrite?
Whatever5k

Re:How to copy three files onto a disk

Post by Whatever5k »

I don't know if this is what you mean, but try:

cat file1 file2 file3 > endfile
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:How to copy three files onto a disk

Post by Pype.Clicker »

the dos/win equivalent : copy -b file1 +file2 +file3 allfiles

note that your files will have to be sector-sized (i.e. no 500 bytes file allowed here : only 0,512,1024 ...)
Post Reply