Hi, My backup process is Filecopy(sourceFile, Adrive), but if the file's capacity is over 1.44mb the system won't be able to operate this function. Is there any other solution? e.g How do i copy a 5 mb file into separate diskettes?
Printable View
Hi, My backup process is Filecopy(sourceFile, Adrive), but if the file's capacity is over 1.44mb the system won't be able to operate this function. Is there any other solution? e.g How do i copy a 5 mb file into separate diskettes?
you can try to use the Filestream instead of filecopy to load the file and chop it to few byte array and store into different diskete
Could you please show me the code? Because i don't really know how's the filestream is use.
Step1: I use File stream and StreamWriter objects.
Step2: I create a buffer of 1.3MB or as is available and fill this
buffer with data and then flush it to floppy. I then Close above
objects and file names given on Floppy start with *.001 so that
you can go upto 999 floppies.
Step3 : I recreate above objects and seek to the last position written+1
to start writing on next floppy.
Step4: For the Last floppy, I create an additional file storing just
No. of Floppies=7(say) and thats all.
I have another program which is just a mirror copy of above program in which I use StreamReader to read the data.
It has worked successfully upto 27 floppies(that is what I have tried)
Hope this gives you some help.
A word of caution: Now a days floppies are not that reliable. So why not use CD-Writer and completely get out of this program!
->the above solution is provided by the programmersheavan.com, but i really don't know how to use the filestream method, can anyone tell me how to do above solution by provide with a sample coding, i will appreciate your kindness. Thank you.
This totutrial for that job ......have fun !