Ciao.
Sto facendo un client FTP il problema è che se decido di fare un upload/download di un file che si trova sotto una cartella con un nome separato (tipo "documents and settings") non funziona, perchè l'ftp non riconosce un nome con spazi.
Per risolvere il problema potrei mettere il nome tra apici,...oppure?
Questo è il mio codice:
dove lstServer è una ListBox e dirSelez è una DirListBox.codice:Private Sub cmdDownLoad_Click() WaitForResponse On Error GoTo ERRORE FTPinet.Execute "", "get " & lstServer.Text & " " & "" & dirSelez.Path & "" & "\" & lstServer.Text Exit Sub ERRORE: MsgBox "ERRORE: " & Err.Description, vbCritical + vbOKOnly End Sub
Esiste un oggetto in VB che mi restituisce un path che vada bene per l'FTP?

Rispondi quotando