private static void CopyImages()
{
var imagesPath = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) + @"\SampleImages";
const string destinationPath = @"C:\Temp\SampleImages\";
foreach (var dest in Directory.GetDirectories(imagesPath, "*", SearchOption.AllDirectories))
{
Directory.CreateDirectory(dest.Replace(imagesPath, destinationPath));
}
foreach (var newPath in Directory.GetFiles(imagesPath, "*.*", SearchOption.AllDirectories))
{
File.Copy(newPath, newPath.Replace(imagesPath, destinationPath), true);
}
AddConsoleMessage("Successfully moved sample images...");
}