There is a better way to transfer files across servers. Here is the code using Ultimate SFTP and http://www.componentpro.com/ftp.net/: using ComponentPro.Net; ... // Connect to an FTP file system. Ftp ftpsys = new Ftp(); ftpsys.Connect("192.168.126.128", 21); ftpsys.Authenticate("test", "test"); // Connect to an SFTP file system. Sftp sftp = new Sftp(); sftp.Connect("192.168.126.128", 2222); sftp.Authenticate("test", "test"); // Copy 'blog.txt' file from the FTP file system to the SFTP file system. ftpsys.CopyTo("blog.txt", sftp, "my blog on SFTP file system.txt"); ftpsys.Disconnect(); sftp.Disconnect(); This is the original example: http://www.componentpro.com/doc/sftp/Uploading-a-file-from-other-file-system.htm
Steps to transfer file from one loc to other
Hi All,
I have 3 windows based Servers A,B and C. I will be creating a DLL using C# and put this DLL on Server B. Here one scheduler will be work.When scheduler starts it will fetch a file from Server A through SFTP protocol and transfer on Server C through FTP protocol.
Please help me how can I solve this issue in dot net..
A ßà B(Scheduler will DLL) ßà C
Thanks in Advance.