此主题相关图片如下:snipaste_2022-10-12_14-50-15.png

此主题相关图片如下:snipaste_2022-10-12_14-51-12.png

Dim ming As String
For i As Integer = 0 To dls.Count - 1
If i = dls.Count - 1 Then
ming = dls(dls.Count - 1)
End If
Next
'Output.Show(ming)
Dim ming2 As String = "\" & ming
'If ftp1.Download(ming2, "D:\仓库系统相关\111.bak", True) = True Then '正常执行
If ftp1.Download("\" & ming & ", "D: \ 仓库系统相关 \ 111.bak", True) = True Then
Messagebox.show("下载完成!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
Messagebox.show("下载失败!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
问题在于 ftp1.Download("\" & ming & " 这写法在这里就出错,难道在这里不能这么写吗?