1,502
社区成员
发帖
与我相关
我的任务
分享
'点击按钮,遍历FileListBox中的文件
Private Sub Command1_Click()
With Inet1
.URL = "ftp://10.65.73.171"
.UserName = "administrator"
.Password = "dqytoa060420"
.Protocol = icFTP
.RequestTimeout = 120
End With
For i = 0 To File1.ListCount - 1
Call Inet1.Execute(, "put """ + File1.Path + "\" + File1.List(i) + """ ftp\" + File1.List(i)) '三个双引号解决路径中存在空格的问题
Dim Doing As Boolean
Doing = Inet1.StillExecuting
Do While Doing
Doing = Inet1.StillExecuting
DoEvents
Loop
Next
End Sub