PartCopy.....

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
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

PartCopy.....

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:49 pm, edited 2 times in total.
Schol-R-LEA

Re:PartCopy.....

Post by Schol-R-LEA »

Assuming I'm reading the documentation right, it doesn't look like there is.
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:PartCopy.....

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:49 pm, edited 1 time in total.
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:PartCopy.....

Post by Pype.Clicker »

what you could do is a small C program that would compute the filesize (the usual fseek(file,0,SEEK_END) ; ftell(file);) and then make a system("...") invokation with the appropriate forged command line.

What you wanna do is easily feasible in BASH or TCSH, but hard in MS-DOS

maybe check the %ERRORLEVEL% variable, it might help you ...
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:PartCopy.....

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:50 pm, edited 1 time in total.
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:PartCopy.....

Post by Pype.Clicker »

i personnally prepare everything into a single "disk.bin" image file and then use "cat disk.bin >/dev/fd0" ...
I feel no need to do it in DOS/Windows as i have an DOS-version of the loader program which can run Clicker as a DOS program :)
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:PartCopy.....

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:50 pm, edited 1 time in total.
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:PartCopy.....

Post by Pype.Clicker »

YEp. That could work pretty fine ;)
Adek336

Re:PartCopy.....

Post by Adek336 »

You don't have to use such sophisticated methods. You just put a size bigger than the file's, and yes, it stops with "Unable to read offset 0A123".

I believe that it even doesn't change the rest of the sector in which the limit occurs.

And, later it works ;D
Perica
Member
Member
Posts: 454
Joined: Sat Nov 25, 2006 12:50 am

Re:PartCopy.....

Post by Perica »

..
Last edited by Perica on Sun Dec 03, 2006 8:50 pm, edited 1 time in total.
richie

Re:PartCopy.....

Post by richie »

Hello!
I use dd. First I developed in Linux. There dd is a standard utility. But now I develop in Windows and there I had the problem how to copy files to the raw floppy-disk. I found a dd version for windows (dd.exe). With the followinf command you copy file.bin to floppy (starting with the first sector):
[tt]
dd bs=512 if=file.bin of=/dev/fd0
[/tt]
You can also start at another sector number (e.g. sector 10)
[tt]
dd bs=512 if=file.bin of=/dev/fd0 seek=10
[/tt]

You can find newer versions of DD.exe with google.

::edit by admin:: check http://unxutils.sourceforge.net/. I (Pype) delete the attachment DD.Zip : this board is not a software exchange platform.
surya4friends

Re:PartCopy.....

Post by surya4friends »

Hey,

If you want to see some source code, and design your own setup, then have look at attachment. Contains class file+header+usage.

It is *not* developed by me. All copy rights, acknowledged.


Regards,
Aditya.

[attachment deleted by admin]
Post Reply