简体   繁体   中英

Copying files from one server to another through a .NET Windows application on my local machine

I have a Windows application built in C#, .NET 3.5. One of its functionalities is to copy files from ServerA to ServerB. The application will be run on a client machine, ClientX.

What is the most efficient command/way to do this in C# so that the files are not temporarily buffered in the ClientX machine by the application?

So the flow of the files should look like:

ServerA ----> ServerB

and NOT like:

ServerA ----> ClientX (temporarily buffered internally by .NET) ----> ServerB

One possibility would be to use the File eXchange Protocol which uses FTP to do a direct transfer from one server to another without the file ever visiting the client.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM