Sending files (VB.NET example)
In This Topic
VB.NET
Copy Code
'The following example demonstrates how to connect to a ' FTP server and upload a file. Dim ftp As New XceedFtpLib.XceedFtpClass() ftp.License( "your license key" ) ' Specify the FTP server's address ftp.ServerAddress = "ftp.cdrom.com" ' Specify the username and password to login ftp.UserName = "anonymous" ftp.Password = "guest" Try ' Connect to the FTP server ftp.Connect() ' Send a file ftp.SendFile( "c:\test\uploads. txt", 0, "uploads.txt", false ) ' Disconnect from the FTP serverftp.Disconnect() Catch except As System.Runtime.InteropServices.COMException MessageBox.Show( except.ToString() ) End Try
2025 © Xceed Software Inc.
4170 Grande-Allée, Suite 100, Greenfield Park, Qc J4V 3N2