ho lo stesso problema allora io invio cosi dal client:
e dal server leggo:codice:Dim buffer() As Byte If NetMsg.CanWrite Then 'Invia la richiesta per il download del file Dim msg As String = "GetDownloadFile C:\" buffer = ASCII.GetBytes(msg) NetMsg.Write(buffer, 0, buffer.Length) End If
Solo che ottengo un errore che dice che il percorso del file non è correttocodice:If Msg.IndexOf("GetDownloadFile ") >= 0 Then Dim filePath As String = Replace(Msg, "GetDownloadFile ", "") Msgbox Path.GetFileName(filePath) '<----errore End If
Qualcuno capisce perchè? Grazie!

Rispondi quotando