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. Database & SysAdmin
  3. Hosting and Servers
  4. Same-server file copies

Same-server file copies

Scheduled Pinned Locked Moved Hosting and Servers
sysadmincsharpquestion
9 Posts 6 Posters 60 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.
  • T Offline
    T Offline
    TNCaver
    wrote on last edited by
    #1

    The answer may be obvious, but I would appreciate confirmation of my understanding. Scenario: in a Windows network, a very large number of files exist in a folder on Server A, but need to be moved to a different folder on the same Server A. User B, which might be a human logged into Server B or an app running on Server B, cannot log into Server A via RDP, but can access its files from Server B. If User B uses File Explorer or a command window to move those files or the C# app uses a File.Move, do those files first get copied across the network from Server A to a temporary folder on Server B and back again? If the user has execute permissions on a folder on Server A and executes a batch/command file in that folder that moves those files, that would not involve actual file copying but changes in the NTFS file tables, right?

    There are no solutions, only trade-offs.
       - Thomas Sowell

    A day can really slip by when you're deliberately avoiding what you're supposed to do.
       - Calvin (Bill Watterson, Calvin & Hobbes)

    J D 2 Replies Last reply
    0
    • T TNCaver

      The answer may be obvious, but I would appreciate confirmation of my understanding. Scenario: in a Windows network, a very large number of files exist in a folder on Server A, but need to be moved to a different folder on the same Server A. User B, which might be a human logged into Server B or an app running on Server B, cannot log into Server A via RDP, but can access its files from Server B. If User B uses File Explorer or a command window to move those files or the C# app uses a File.Move, do those files first get copied across the network from Server A to a temporary folder on Server B and back again? If the user has execute permissions on a folder on Server A and executes a batch/command file in that folder that moves those files, that would not involve actual file copying but changes in the NTFS file tables, right?

      There are no solutions, only trade-offs.
         - Thomas Sowell

      A day can really slip by when you're deliberately avoiding what you're supposed to do.
         - Calvin (Bill Watterson, Calvin & Hobbes)

      J Offline
      J Offline
      jschell
      wrote on last edited by
      #2

      Standard file mapping software will insure that a copy on the same physical system will remain on that system. The executable permission has nothing to do with the rest of the question at all.

      T 1 Reply Last reply
      0
      • J jschell

        Standard file mapping software will insure that a copy on the same physical system will remain on that system. The executable permission has nothing to do with the rest of the question at all.

        T Offline
        T Offline
        TNCaver
        wrote on last edited by
        #3

        jschell wrote:

        The executable permission has nothing to do with the rest of the question at all.

        True, but then that really wasn't the question. I'm not sure you understood my questions at all, but that's probably my fault for not being clear. My question is about which, if any, of the various scenarios presented will result in those files flowing across the network. I'm also confused by your use of "standard file mapping software". I'm talking about the operating system's Copy and Move commands, as well as the File.Move command in C#.

        There are no solutions, only trade-offs.
           - Thomas Sowell

        A day can really slip by when you're deliberately avoiding what you're supposed to do.
           - Calvin (Bill Watterson, Calvin & Hobbes)

        1 Reply Last reply
        0
        • T TNCaver

          The answer may be obvious, but I would appreciate confirmation of my understanding. Scenario: in a Windows network, a very large number of files exist in a folder on Server A, but need to be moved to a different folder on the same Server A. User B, which might be a human logged into Server B or an app running on Server B, cannot log into Server A via RDP, but can access its files from Server B. If User B uses File Explorer or a command window to move those files or the C# app uses a File.Move, do those files first get copied across the network from Server A to a temporary folder on Server B and back again? If the user has execute permissions on a folder on Server A and executes a batch/command file in that folder that moves those files, that would not involve actual file copying but changes in the NTFS file tables, right?

          There are no solutions, only trade-offs.
             - Thomas Sowell

          A day can really slip by when you're deliberately avoiding what you're supposed to do.
             - Calvin (Bill Watterson, Calvin & Hobbes)

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

          Your situations are not entirely clear so I'll answer it like this. The only time the files will NOT cross the wire is when you are MOVING (NOT COPYING!) the files from one folder to another ON THE SAME VOLUME ON THE SAME SERVER.

          Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
          Dave Kreskowiak

          R 1 Reply Last reply
          0
          • D Dave Kreskowiak

            Your situations are not entirely clear so I'll answer it like this. The only time the files will NOT cross the wire is when you are MOVING (NOT COPYING!) the files from one folder to another ON THE SAME VOLUME ON THE SAME SERVER.

            Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
            Dave Kreskowiak

            R Offline
            R Offline
            RedDk
            wrote on last edited by
            #5

            Dave Kreskowiak wrote:

            will NOT cross

            but with any luck, won't be truncated (therefore "moved"). Windows 10, on my multi-processor box, with tons of fast memory, COPY/XCOPY/MOVE TRUNCATES files. Particularly image files. To boot, there's little evidence that anyone with a respectable claim to knowledge concerning the faux pas is ever going to see fit to fix the problem. And to TNCaver (if you're listening): I wouldn't want to hijack a post by claiming I knew anything about servers or hosting because I'm really a general computer user with some basic understanding of system processing, but in my experience, there's only one way to handle transfering of files from point A to point B ... and so far ... that's by zipping them up in an archive. If that sounds kosher to you, lemmee know and I'll go into more detail.

            J D L 3 Replies Last reply
            0
            • R RedDk

              Dave Kreskowiak wrote:

              will NOT cross

              but with any luck, won't be truncated (therefore "moved"). Windows 10, on my multi-processor box, with tons of fast memory, COPY/XCOPY/MOVE TRUNCATES files. Particularly image files. To boot, there's little evidence that anyone with a respectable claim to knowledge concerning the faux pas is ever going to see fit to fix the problem. And to TNCaver (if you're listening): I wouldn't want to hijack a post by claiming I knew anything about servers or hosting because I'm really a general computer user with some basic understanding of system processing, but in my experience, there's only one way to handle transfering of files from point A to point B ... and so far ... that's by zipping them up in an archive. If that sounds kosher to you, lemmee know and I'll go into more detail.

              J Offline
              J Offline
              jschell
              wrote on last edited by
              #6

              RedDk wrote:

              COPY/XCOPY/MOVE TRUNCATES files

              I will note that I have decades of work experience and I have never seen a problem specifically like that. I have seen problems such as empty files, corrupted files, failed moves, moves that never complete. Probably some others as well. That includes within one physical disk, across disks, across shared file systems (via various mechanisms that allow that.) Problems that I have seen are most often user error to some extent. But hardware and network problems have also been at fault. Even long ago ejecting disks (or memory cards) before it was completed.

              1 Reply Last reply
              0
              • R RedDk

                Dave Kreskowiak wrote:

                will NOT cross

                but with any luck, won't be truncated (therefore "moved"). Windows 10, on my multi-processor box, with tons of fast memory, COPY/XCOPY/MOVE TRUNCATES files. Particularly image files. To boot, there's little evidence that anyone with a respectable claim to knowledge concerning the faux pas is ever going to see fit to fix the problem. And to TNCaver (if you're listening): I wouldn't want to hijack a post by claiming I knew anything about servers or hosting because I'm really a general computer user with some basic understanding of system processing, but in my experience, there's only one way to handle transfering of files from point A to point B ... and so far ... that's by zipping them up in an archive. If that sounds kosher to you, lemmee know and I'll go into more detail.

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

                It's not going to be fixed by Microsoft because it's something specific to your machine/network setup. I've NEVER had anything like that happen in any version of Windows and I've been using every version since you had to type "win" at a DOS prompt to start Windows.

                Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                Dave Kreskowiak

                S 1 Reply Last reply
                0
                • R RedDk

                  Dave Kreskowiak wrote:

                  will NOT cross

                  but with any luck, won't be truncated (therefore "moved"). Windows 10, on my multi-processor box, with tons of fast memory, COPY/XCOPY/MOVE TRUNCATES files. Particularly image files. To boot, there's little evidence that anyone with a respectable claim to knowledge concerning the faux pas is ever going to see fit to fix the problem. And to TNCaver (if you're listening): I wouldn't want to hijack a post by claiming I knew anything about servers or hosting because I'm really a general computer user with some basic understanding of system processing, but in my experience, there's only one way to handle transfering of files from point A to point B ... and so far ... that's by zipping them up in an archive. If that sounds kosher to you, lemmee know and I'll go into more detail.

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  I find that difficult to believe. In my more than 40 years experience of MS-DOS and Windows I have never encountered that problem. And I do file copying and moving quite regularly within local and networked disks.

                  1 Reply Last reply
                  0
                  • D Dave Kreskowiak

                    It's not going to be fixed by Microsoft because it's something specific to your machine/network setup. I've NEVER had anything like that happen in any version of Windows and I've been using every version since you had to type "win" at a DOS prompt to start Windows.

                    Asking questions is a skill CodeProject Forum Guidelines Google: C# How to debug code Seriously, go read these articles.
                    Dave Kreskowiak

                    S Offline
                    S Offline
                    Sernjijj Kabral
                    wrote on last edited by
                    #9

                    Server accounts management, portfolio, is macros, in instantiated form, of overruling.

                    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