【发布时间】:2014-05-12 01:43:28
【问题描述】:
我想将一个目录从一个位置复制到另一个位置,但是在复制时我收到一条错误消息:
"Could not complete operation on some files and directories. See the Data property of the exception for more details."不知道是什么问题
我试过了:
Microsoft.VisualBasic.FileIO.FileSystem.CopyDirectory(FolderBrowserDialog1.SelectedPath, System.IO.Path.Combine(curDir, filename.Name))
和
My.Computer.FileSystem.CopyDirectory(FolderBrowserDialog1.SelectedPath, System.IO.Path.Combine(curDir, filename.Name))
但我仍然收到相同的消息。
关于如何解决这个问题的任何指示?
谢谢。
【问题讨论】:
-
为什么要将文件名连接到 curDir 变量? CopyDirectory 的第二个参数应该是另一个文件夹
标签: vb.net copy directory move