Copy large files
-
Hello, I'm creating .NET remoting application. I need to send files thoroug network. Files can be very large, and I would like to be sure files are send succesfully. What I've been thinking, is to split file on smaller ones (eg. 1MB), and send them one by one through net. With textual files this is very easy but what with binary files? How to split them? Also, how can I do CRC check at the end? Thanks in advance, Fedor
-
Hello, I'm creating .NET remoting application. I need to send files thoroug network. Files can be very large, and I would like to be sure files are send succesfully. What I've been thinking, is to split file on smaller ones (eg. 1MB), and send them one by one through net. With textual files this is very easy but what with binary files? How to split them? Also, how can I do CRC check at the end? Thanks in advance, Fedor
If you have XP SP2 or morte recent OS there is a command line utility called "robocopy" that does robust file copying...I suggest you use that or teh built in FTP classes rather then reinvent the wheel yourself?
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
-
If you have XP SP2 or morte recent OS there is a command line utility called "robocopy" that does robust file copying...I suggest you use that or teh built in FTP classes rather then reinvent the wheel yourself?
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
Thanks for the answer, I'll check that
-
If you have XP SP2 or morte recent OS there is a command line utility called "robocopy" that does robust file copying...I suggest you use that or teh built in FTP classes rather then reinvent the wheel yourself?
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
I think that robocopy won't work. As I saw on http://en.wikipedia.org/wiki/Robocopy[^] Robocopy works only with folders. That is not what I need, I need files to be copyed. About FTP classes, can you give me more info, how to do it? Thanks
-
I think that robocopy won't work. As I saw on http://en.wikipedia.org/wiki/Robocopy[^] Robocopy works only with folders. That is not what I need, I need files to be copyed. About FTP classes, can you give me more info, how to do it? Thanks
Fedor Hajdu wrote:
As I saw on http://en.wikipedia.org/wiki/Robocopy\[^\] Robocopy works only with folders.
BS. We use it all the time around here to copy large files acrossed a slow WAN. You can copy individual files however you want.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
Fedor Hajdu wrote:
As I saw on http://en.wikipedia.org/wiki/Robocopy\[^\] Robocopy works only with folders.
BS. We use it all the time around here to copy large files acrossed a slow WAN. You can copy individual files however you want.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007That's great! Thanks
-
Fedor Hajdu wrote:
As I saw on http://en.wikipedia.org/wiki/Robocopy\[^\] Robocopy works only with folders.
BS. We use it all the time around here to copy large files acrossed a slow WAN. You can copy individual files however you want.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007You mean wikipedia was *wrong* ????
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
You mean wikipedia was *wrong* ????
Christian Graus - Microsoft MVP - C++ "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
It wouldn't have been had *I* wrote the entry! :laugh:
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007 -
If you have XP SP2 or morte recent OS there is a command line utility called "robocopy" that does robust file copying...I suggest you use that or teh built in FTP classes rather then reinvent the wheel yourself?
'--8<------------------------ Ex Datis: Duncan Jones Merrion Computing Ltd
No, I checked this, and it simply won'g work. The problem I have is that I can't access to share folder on machines. Using robocopy or anyonther command line tool would require some kind of share copy from one location to other, somewhere in the network. In my applications, I have client and server independent app's and I have to send file through .net remoting, like a parameter to method (IO.FileInfo, or byte array). Please help i'm :~ Thanks in advance Fedor
-
Hello, I'm creating .NET remoting application. I need to send files thoroug network. Files can be very large, and I would like to be sure files are send succesfully. What I've been thinking, is to split file on smaller ones (eg. 1MB), and send them one by one through net. With textual files this is very easy but what with binary files? How to split them? Also, how can I do CRC check at the end? Thanks in advance, Fedor
Anyone?