问题描述
我只想尝试将所选文件和文件夹复制在一起。不复制单个目录或选择文件。
在A主文件夹中有:B,C,D,E子文件夹。
和A主文件夹中有以下文件: file1.docx,File2.pdf,File3.jpg,File4.mp3
如何使用multiselect复制FolderB和File2以及File4 togerher?
有可能吗?
我可以使用openfiledialog复制MultiSElect文件或使用folderbrowsdialog复制文件夹
但我无法做到,无法在互联网上找到。
我尝试了什么:
I just want to try to Copy Selected Files and folders together. Not copy a single Directory or Select Files.
in A main Folder there are : B, C, D, E Subfolders.
and in A Main Folder there are files as : file1.docx, File2.pdf, File3.jpg, File4.mp3
How can I copy FolderB and File2 and File4 togerher with multiselect ?
is it possible ?
I can Coppy MultiSElect Files with openfiledialog or copy folder with folderbrowsdialog
but I couldnt do and couldnt find in internet.
What I have tried:
If OpenFileDialog1.ShowDialog() = DialogResult.OK Then
Dim sayi As Integer = Me.OpenFileDialog1.FileNames.Length - 1
For i As Integer = 0 To sayi
ListBox1.Items.Add(OpenFileDialog1.FileNames(i))
Next
End If
推荐答案
这篇关于如何一次将所选文件和文件夹复制到另一个文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!