On 3 Aug 2005 05:00:56 -0700, "JPSutor" <jp*****@yahoo.com> wrote:
Can someone show me a good code example of how to use FTP to transfer a
file to a website. Please, no Microsoft examples, they are so very vague.
Here's an Xceed FTP for .NET example for transfering one single file:
using Xceed.Ftp;
FtpClient ftp = new FtpClient();
ftp.Connect( "localhost" ); // replace with your ftp server address
ftp.Login();
ftp.SendFile( @"d:\test.txt", "ftp_test.txt" ); // local file, remote
ftp.Disconnect();
Replace "SendFile" with "SendMultipleFiles" and you can then send
entire directory structures with wildcards in one fell swoop.
Xceed FTP for .NET is a component that's part of Xceed's Data
Manipulation Suite:
http://www.xceedsoft.com/products/dms
--
Alex Leblanc
Xceed Software Inc.
http://www.xceedsoft.com
Check out our advanced .NET grid and Windows Forms UI controls
Email:
xL*******@xceedsoft.com (remove the first 'x')