Foxtable(狐表)用户栏目专家坐堂 → 附件批量导出


  共有2278人关注过本帖平板打印复制链接

主题:附件批量导出

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:106585 积分:542096 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2019/10/11 8:57:00 [只看该作者]

Dim dlg As New FolderBrowserDialog
Dim f As String = Tables("表A").Cols("文件管理").DataCol.DefaultFolder
If f Is Nothing Then
    f = ProjectPath & "Attachments\"
Else
    f = f & "\"
End If
If dlg.ShowDialog = DialogResult.Ok Then
    msgbox(dlg.SelectedPath )
    For Each r As Row In Tables("表A").rows
        Dim file = f & r("文件管理")
        If FileSys.FileExists(file) Then
            FileSys.CopyFile(file,dlg.SelectedPath & r("文件管理"),True)
        Else
            msgbox("文件不存在:" & file)
        End If
    Next
End If

 回到顶部