Programming languages
VB.NET, C#
Overview
The Ftp Client sample application demonstrates how to use the various properties, methods, and events exposed by the AsyncFtpClient class in a user-friendly graphical interface.
It specifically demonstrates how to do the following:
-
Handle the CommandSent, Disconnected, FileTransferStatus, MultipleFileTransferError, ParsingListingLine, ReceivingFile, ReplyReceived, SendingFile and StateChanged events.
-
Trace/log the FTP operations to a text file by setting the TraceWriter property.
-
Change the default timeout value by setting the Timeout property.
-
Use the RepresentationType property to transfer files in ASCII or binary mode.
-
Use the PassiveTransfer property to allow passive and non-passive FTP operations.
-
Allocate storage on the FTP server before sending a file using the PreAllocateStorage property.
-
Change the currently logged-in user using the BeginChangeUser/EndChangeUser methods.
-
Retrieve the state of the FTP client using the State and Connected properties.
-
Retrieve information on an FTP item using the FtpItemInfo class.
-
Retrieve the current working folder using the BeginGetCurrentFolder/EndGetCurrentFolder methods.
-
Change the current working folder by using the BeginChangeCurrentFolder/EndChangeCurrentFolder methods.
-
Create a folder on the FTP server using the BeginCreateFolder/EndCreateFolder methods.
-
Delete files and folders from the FTP server using the BeginDeleteFile/EndDeleteFile and BeginDeleteFolder/EndDeleteFolder methods.
-
List the contents of the FTP server's current working folder using the BeginGetFolderContents/EndGetFolderContents methods.
-
Receive files using the BeginReceiveFile/EndReceiveFile and BeginReceiveMultipleFiles/EndReceiveMultipleFiles methods.
-
Use the BeginRenameFile/EndRenameFile methods to rename a file on the FTP server.
-
Send files using the BeginSendFile/EndSendFile and BeginSendMultipleFiles/EndSendMultipleFiles methods.
Project location & filename
Master directory:
<SamplesInstallDir>Xceed Zip for .NET [version]\
Where <SamplesInstallDir> by default is <SystemVolume>Xceed Samples under Windows Vista/7, and <ProgramFiles>Xceed Samples under Windows XP. NOTE: The sample applications for Xceed's FileSystem based products are all contained in the "Xceed Zip for .NET" folder.
C#: \CSharp\ClientFtp\ClientFtp.csproj
VB.NET: \Visual Basic .NET\ClientFtp\ClientFtp.vbproj