Foxtable(狐表)用户栏目专家坐堂 → 帮忙看看这段代码错哪里了?


  共有2464人关注过本帖树形打印复制链接

主题:帮忙看看这段代码错哪里了?

帅哥哟,离线,有人找我吗?
lmk
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:婴狐 帖子:39 积分:302 威望:0 精华:0 注册:2011/1/9 17:22:00
  发帖心情 Post By:2015/8/16 21:27:00 [显示全部帖子]

这样会不会相对合理一些呢

Dim ftp As New FtpClient
ftp.Host="tangrenjie.net"
ftp.Account = "jinzhengbe"
ftp.Password = "Huayin7761"
Dim Result As DialogResult
For Each File As String In FileSys.GetFiles("c:\as\")
    If ftp.Upload(file, "/aa/" & FileSys.GetName(file)) = False Then
        Result = Messagebox.show(FileSys.GetName(file) & "上传失败!是否继续上传剩余文件?","提示",MessageBoxButtons.YesNo,MessageBoxIcon.Information)
        If Result = 6 Then
            Continue For
        Else
            Exit For
        End If
    End If
Next
If Result = 0 Then
    Messagebox.show("上传完成!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
End If

 回到顶部