Foxtable(狐表)用户栏目专家坐堂 → 批量保存照片


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

主题:批量保存照片

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


加好友 发短信
等级:超级版主 帖子:106603 积分:542186 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/7/14 20:53:00 [只看该作者]

Dim dlg As New FolderBrowserDialog
If
 dlg.ShowDialog = DialogResult.Ok Then
    MessageBox.Show(
"你选择的目录是:" & dlg.SelectedPath,"提示")

For Each dr As DataRow In DataTables("表A").Select("第一列 is not null")
    For Each file As String In FileSys.GetFiles(
dlg.SelectedPath)
        Dim name As String = FileSys.GetName(file)
        If name.Contains(dr("第一列")) Then
            FileSys.CopyFile(file, ProjectPath & "图片/" & name, True)
            dr("第二列") = name
        End If
    Next
Next
DataTables("表A").datacols("第二列").DefaultFolder  = ProjectPath & "图片/"


End If


 回到顶部
总数 52 1 2 3 4 5 6 下一页