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 を使用してディレクトリの内容全体をコピーして別のディレクトリに移動し、元のディレクトリからファイルを削除するにはどうすればよいですか?
これが最も簡単な方法だと思います:
FileIO.FileSystem.CopyDirectory(sourceFolder, outputFolder) FileIO.FileSystem.DeleteDirectory(sourceFolder, FileIO.DeleteDirectoryOption.DeleteAllContents)
コピー中にユーザーにダイアログを表示するなど、いくつかのオプションを備えた追加のオーバーロードがあります。