Imports System.Net
Public Class FTPPlus2
Shared Property HostName As String
Shared Property Password As String
Shared Property UserID As String
Shared Property Target As String
Shared Property ID As String
Shared Property SiteName As String
Shared Property request As FtpWebRequest
Shared Property response As FtpWebResponse
Shared Sub Disconnect()
If response IsNot Nothing Then
response.Close()
End If
End Sub
Shared Sub Connect()
request = DirectCast(WebRequest.Create(String.Format("ftp://{0}", HostName)), FtpWebRequest)
End Sub
Shared Sub ChangeCurrentFolder(FolderName)
End Sub
Shared Function Connected As Boolean
Dim ret As Boolean = False
Return ret
End Function
Shared Sub Login()
request.Credentials = New NetworkCredential(UserID, Password)
End Sub
End Class
The .NET Framework is not specific to any one programming language; rather, it includes a library of functions that allows developers to rapidly build applications. Several supported languages include C#, VB.NET, C++ or ASP.NET.
TRUSTED BY
ASKER