Salve,
ho necessità di creare un elenco di files che si trovano in un determinato indirizzo URL.
Ho provato con il seguente codice:
Dim NomePath As String= "http://ab/cd/Documenti"
ListBox1.Items.Clear()
Try
Dim fileEntries As String() = directory.GetFiles(NomePath, "*.docx")
If UBound(fileEntries) > -1 Then
For Each fileName As String In fileEntries
ListBox1.Items.Add(fileName)
Next
End If
Catch ex As Exception
MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Error)
End Try
ma giustamente il codice genera l'eccezione "I formati URI non sono supportati".
Esiste una classe analoga a quella da me usata che funziona con gli URL? O in alternativa qualche altro sistema?
Grazie