Move a folder with Directory.Move method in CSharp
Description
The following code shows how to move a folder with Directory.Move method.
Example
using System;//from w w w. j a v a 2s . co m
class Class1
{
static void Main(string[] args)
{
Move("C:\\proof", "C:\\Temp");
}
static void Move(string sourcePath, string destinationPath)
{
System.IO.Directory.Move(sourcePath, destinationPath);
System.Console.WriteLine("The directory move is complete.");
}
}