Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Copy large files

Copy large files

Scheduled Pinned Locked Moved Visual Basic
questioncsharpsysadmintutorial
10 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Fedor Hajdu
    wrote on last edited by
    #1

    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

    D F 2 Replies Last reply
    0
    • F Fedor Hajdu

      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

      D Offline
      D Offline
      Duncan Edwards Jones
      wrote on last edited by
      #2

      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

      F 3 Replies Last reply
      0
      • D Duncan Edwards Jones

        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

        F Offline
        F Offline
        Fedor Hajdu
        wrote on last edited by
        #3

        Thanks for the answer, I'll check that

        1 Reply Last reply
        0
        • D Duncan Edwards Jones

          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

          F Offline
          F Offline
          Fedor Hajdu
          wrote on last edited by
          #4

          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

          D 1 Reply Last reply
          0
          • F Fedor Hajdu

            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

            D Offline
            D Offline
            Dave Kreskowiak
            wrote on last edited by
            #5

            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

            F C 2 Replies Last reply
            0
            • D Dave Kreskowiak

              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

              F Offline
              F Offline
              Fedor Hajdu
              wrote on last edited by
              #6

              That's great! Thanks

              1 Reply Last reply
              0
              • D Dave Kreskowiak

                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

                C Offline
                C Offline
                Christian Graus
                wrote on last edited by
                #7

                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 )

                D 1 Reply Last reply
                0
                • C Christian Graus

                  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 )

                  D Offline
                  D Offline
                  Dave Kreskowiak
                  wrote on last edited by
                  #8

                  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

                  1 Reply Last reply
                  0
                  • D Duncan Edwards Jones

                    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

                    F Offline
                    F Offline
                    Fedor Hajdu
                    wrote on last edited by
                    #9

                    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

                    1 Reply Last reply
                    0
                    • F Fedor Hajdu

                      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

                      F Offline
                      F Offline
                      Fedor Hajdu
                      wrote on last edited by
                      #10

                      Anyone?

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups