Gurus
I have the following code
but how do I go and pick the right folder within the FTP site, once I go into the FTP I have to pick IN or OUT and within those Folder to pick the right one to upload the files.Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim FTPrequest As System.Net.FtpWebRequest = DirectCast(System.Net.WebRequest.Create("FTPURL"), System.Net.FtpWebRequest) FTPrequest.Credentials = New System.Net.NetworkCredential("UserName", "Password") FTPrequest.Method = System.Net.WebRequestMethods.Ftp.UploadFile Dim file() As Byte = System.IO.File.ReadAllBytes("C:\Filename.zip") Dim StreamStr As System.IO.Stream = FTPrequest.GetRequestStream() StreamStr.Write(filename, 0, filename.Length) streamStr.Dispose() End Sub
Thanks a bunch for any help I can get


Reply With Quote