I have an autoupdater C# program. It will download a rar file that holds the changed or new files for the update to some software. The rar file has it\'s structure just like
The simplest way is to use the FileSystem.MoveDirectory method. Make sure you add a reference to the Microsoft.VisualBasic.dll:
Microsoft.VisualBasic.dll
using Microsoft.VisualBasic.FileIO; ... // Merge D:\SourceDir with D:\DestDir: FileSystem.MoveDirectory("D:\\SourceDir", "D:\\DestDir", true /* Overwrite */);