using System;
using System.Drawing;
using System.IO;
public static class DisplayFusionFunction
{
public static void Run(IntPtr windowHandle)
{
// Set the source and destination folders here
string sourceFolder = @"C:\path\to\source";
string destinationFolder = @"D:\path\to\destination";
// Comment out this line and uncomment the next line if you don't want to be prompted when running the script
bool confirm = BFS.Dialog.GetUserConfirm("This script will IRREVERSIBLY delete \"" + destinationFolder + "\" and then move \"" + sourceFolder + "\" to \"" + destinationFolder + "\". Are you sure you would like to continue?");
// bool confirm = true;
if (confirm)
{
// Delete the destination directory (this is recursive, will delete the folder and all sub-folders!)
Directory.Delete(destinationFolder, true);
// Move the source to the destination (note this moves the contents of the source folder into the destination folder,
// it does not move the source folder itself but it will remove the empty source folder when done)
Directory.Move(sourceFolder, destinationFolder);
}
else
{
return;
}
}
}