Here is my source file and destination file";
Source : E:\\Test\Test_Content\\ABC12
Destination: F:\\Test\GetContent
I want to move folder ABC12 from E drive to destination path within GetContent folder, However ABC12 contains different sub folder. ABC12 folder should be completely move to destination folder along with subfolder. Please help me.
I am getting following error: I am getting error like this "Source and destination path must have identical roots. Move will not work across volumes."
string sfolder="Path of the folder to move which is in project directory in E drive";
string path = "~/UContent" + "/" + sfolder;
string extractfiles = Server.MapPath("UContent"+"/");
System.IO.Directory.Move(extractfiles+"/"+sfolder,@"F:/GetContent/");