move files from one directory to another using csharp

Code Example - move files from one directory to another using csharp

                
                        using System.IO;

string rootDirectory = @"C:\Users\USER\Folder1";
string destinationDirectory = @"C:\Users\USER\Folder2";

string[] Files = Directory.GetFiles(rootDirectory);

foreach (string file in Files) {
	File.Move(file, %%%~COMPRESS~PRE~0~%%%quot;{destinationDirectory}{Path.GetFileName(file)}");
}