Grazie Buba88. Sembra che funziona, ma il problema è che messo nell' "Execute" dell'Inet, non funziona il download:
codice:
Private Sub cmdDownLoad_Click()
PathCorto = ModConn.GetShortPath(dirSelez.Path)
WaitForResponse
On Error GoTo ERRORE
FTPinet.Execute "", "get " & lstServer.Text & " " & PathCorto & "\" & lstServer.Text
Exit Sub
ERRORE:
MsgBox "ERRORE: " & Err.Description, vbCritical + vbOKOnly
End Sub
mi restituisce "error 5:accesso negato".
Inoltre ho notato che non legge più il "lstServer.Text" dopo la variabile "PathCorto".Ossia l'execute sembra che si fermi dopo aver usato la funzione "GetShortPath".