Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
一个简单的问题,我如何使用 VB.net 将目录的 entier 内容复制并移动到另一个目录,然后从原始目录中删除文件?
我认为这是最简单的方法:
FileIO.FileSystem.CopyDirectory(sourceFolder, outputFolder) FileIO.FileSystem.DeleteDirectory(sourceFolder, FileIO.DeleteDirectoryOption.DeleteAllContents)
还有一些额外的重载选项,例如在复制期间向用户显示对话框。