Mon May 14, 2012 3:38 pm
After deep investigation at last I got a solution for it,
It can work for others too,
For image moving just use it
//string sToPath = pMapPath + "pictures";
string sToPath = pMapPath + pToImageFolder;
DirectoryInfo toDirInfo = new DirectoryInfo(sToPath);
//move all files
foreach (FileInfo file in fromDirInfo.GetFiles()) {
file.MoveTo(Path.Combine(sToPath, file.Name));
}
fromDirInfo.Delete();
#endregion
and for image mappings and style mapping just use System.IO.File in asp.net
string sHtmlFileContents = File.ReadAllText(sHtmlFile);
....
sHtmlFileContents = sHtmlFileContents.Replace(imgFolder, "pictures");
....
File.WriteAllText(sHtmlFile, sHtmlFileContents);