allora diciamo che ho trovato qualcosa, però ho un problema mi carica tutta la lista su di unica riga della ListBox, perchè?
codice:' Get the object used to communicate with the server. Dim request As FtpWebRequest = CType(WebRequest.Create("ftp://xx.xx.org/"), FtpWebRequest) request.Method = WebRequestMethods.Ftp.ListDirectoryDetails ' This example assumes the FTP site uses anonymous logon. request.Credentials = New NetworkCredential("xx", "xx") Dim response As FtpWebResponse = CType(request.GetResponse, FtpWebResponse) Dim responseStream As Stream = response.GetResponseStream Dim reader As StreamReader = New StreamReader(responseStream) ' Console.WriteLine(reader.ReadToEnd) ' Console.WriteLine("Directory List Complete, status {0}", response.StatusDescription) ListBox1.Items.Add("Directory List Complete, status {0}" & response.StatusDescription) reader.Close() response.Close()

Rispondi quotando