How to copy folder with content with C#

using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CopyFolder
{
class Program
{
static void Main(string[] args)
{
string sourcePath = @"G:\Mahedee_Share\Created";
string destPath = @"G:\Mahedee_Share\Development";
CopyFolder(sourcePath,destPath);
}

private static void CopyFolder(string sourcePath, string destinationPath)
{

try
{

//Now Create all of the directories
foreach (string dirPath in Directory.GetDirectories(sourcePath, "*",
SearchOption.AllDirectories))
Directory.CreateDirectory(dirPath.Replace(sourcePath, destinationPath));

//Copy all the files & Replaces any files with the same name
foreach (string newPath in Directory.GetFiles(sourcePath, "*.*",
SearchOption.AllDirectories))
System.IO.File.Copy(newPath, newPath.Replace(sourcePath, destinationPath), true);
}
catch (Exception exp)
{

}
}
}
}

How to configure IIS for different port

1.      Open IIS Manager (run -> inetmgr)
2.      In the Connections pane, expand the Sites node in the tree, and then click to select the site for which you want to add/edit binding.
3.      Right click on the site and click Edit bindings
4.      Select Port on the site binding pane
5.      Click Edit button
6.      In Edit Site Binding pane type port (ex. 1080) and click Ok
IIS Port change