Foxtable(狐表)用户栏目专家坐堂 → PictureViewer1,数据字段问题


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

主题:PictureViewer1,数据字段问题

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


加好友 发短信
等级:超级版主 帖子:13837 积分:69650 威望:0 精华:0 注册:2016/11/1 14:42:00
  发帖心情 Post By:2017/1/10 17:14:00 [显示全部帖子]

参考代码

 

Dim dlg As new OpenFileDialog
dlg.MultiSelect = True
If dlg.ShowDialog = DialogResult.OK Then
    Dim ftp1 As New FtpClient
    ftp1.Host="127.0.0.1"
    ftp1.Account = "test"
    ftp1.Password = "test"
    ftp1.UTF8 = True
    For Each f As String In dlg.FileNames
        Dim r As New System.Text.RegularExpressions.Regex("[0-9]*\.{1}")
        Dim ary() As String = r.Split(FileSys.GetName(f))
        Dim path As String = ary(0)
        If ftp1.DirExists(path) = False Then ftp1.MakeDir(path)
        If ftp1.Upload(f, "/" & path & "/" & filesys.GetName(f)) = True Then
            output.show("上传:" & filesys.GetName(f) & " 成功")
        Else
            output.show("上传:" & filesys.GetName(f) & " 失败")
        End If
    Next
    ftp1.Close
End If


 回到顶部