C# - File.Move one system to other system

Balamurugan Ramalingam 0 Reputation points
2026-09-13T15:48:42.15+00:00

Hi Team,

Using C# code, we are using file.move function to move files one system [ Share folder ] to other system [ Share foler]. Some cases moving to SFTP. The C# code is getting executed in Windows Server. Server located in Singapore. File moving is happing in India. The summary code is executing server [ Singapore] and file moving is happening in India. Now the questions is the network connection [ band width ] between India & Singapore will affect / down the network in the time of file moving within India network ?

Windows for business | Windows Server | Networking | Network connectivity and file sharing
0 comments No comments

1 answer

Sort by: Most helpful
  1. Marcin Policht 107.9K Reputation points MVP Volunteer Moderator
    2026-09-13T16:08:49.7+00:00

    Yep - the network bandwidth between Singapore and India can affect the file-move operation, but it depends on where the C# application is running and where the source and destination shares actually reside.

    If the C# code is running on a Windows Server in Singapore, and the source and destination file shares are both physically located in India, then a normal File.Move operation can still involve the Singapore server communicating with the India file servers. However, if both source and destination are SMB shares and they are on different systems, File.Move does not necessarily mean that the entire file is downloaded to Singapore and then uploaded to India.

    For example, suppose the application in Singapore executes:

    File.Move(@"\IndiaServer1\Share\File.zip", @"\IndiaServer2\Share\File.zip");

    If both paths are SMB network shares, Windows attempts to perform a server-side rename/move operation where possible. If the source and destination are on different file servers, however, the operation may require copying the file from one server to the other and then deleting the source. In that situation, the data can traverse the network path between the systems, and the location of the C# server and the network routing become important.

    If the Singapore server is actually acting as an intermediary, for example the application reads the file from India into Singapore and then writes it to another India system, then the Singapore-to-India bandwidth absolutely becomes part of the data path. A large file transfer could consume significant bandwidth and potentially affect other traffic using that network link.

    If the source and destination are both within the same Indian network and the move is performed directly between those systems, the Singapore-to-India link should not carry the file contents merely because the C# application controlling the operation is running in Singapore. The Singapore server may only be sending the command to initiate the operation. The critical question is therefore not where the C# code executes, but where the actual source and destination systems are located and what protocol/operation is being used.

    SFTP is different. If your C# application in Singapore connects to an SFTP server in India and uploads/downloads files, the file data definitely traverses the Singapore-India network connection. In that scenario, the available bandwidth, latency, packet loss and other traffic on the link can directly affect the transfer speed and can potentially cause congestion if the transfers are large or numerous.

    So, if your concern is whether a file transfer between two India-based systems can "bring down" or heavily consume the India network simply because the C# application is running in Singapore, the answer is no, not necessarily. You need to determine the actual data path. If the data path is India → Singapore → India, the Singapore-India link is carrying the file data. If the data path is India → India and Singapore only sends the command, the Singapore-India bandwidth has little or no impact on the file's actual data transfer.

    One way to verify this is to identify the exact source and destination UNC paths and whether the SFTP connection originates from the Singapore server. That will tell you whether Singapore is in the actual data path or is simply controlling the operation.


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.