Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.9k views
in .NET FTP by (160 points)
Hey i was wondering if there is a way to remove or add files via the ftp .net this is the code i have so far it work all im able to do tho is look at them cant edit cant even open all i can it login to my ftp...

SOURCE CODE
Public Class Form1

    Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click

        Try
            ' Clear the list-box
            FilesListBox.Items.Clear()

            ' Set server and log-in properties
            FtpConnection1.ServerAddress = ServerTextBox.Text
            FtpConnection1.ServerPort = Integer.Parse(PortTextBox.Text)
            FtpConnection1.UserName = UserTextBox.Text
            FtpConnection1.Password = PasswordTextBox.Text

            ' Connect, get files and close
            FtpConnection1.Connect()
            FilesListBox.Items.AddRange(FtpConnection1.GetFiles())
            FtpConnection1.Close()

        Catch ex As Exception
            If FtpConnection1.IsConnected Then
                FtpConnection1.Close()
            End If
            MessageBox.Show(Me, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)
        End Try

    End Sub
End Class

i have the new vb.net express...
thank you for your help and i hope someone can help me

3 Answers

0 votes
by (162k points)
Best way to start is to go through the sample code that comes with the distribution.
0 votes
by (160 points)
Hey im not sure if i have that i cant seem to find it...
0 votes
by (162k points)
Look in the 'examples' directory.

Categories

...