//将原来的文件也复制一份到新的文件夹中
string strAttURLNew = System.Web.HttpContext.Current.Server.MapPath("~/TempFile/upfiles/") + txtZhuanFaRowGuid.Text + "\\"
if (Directory.Exists(strAttURLNew) == false)//如果不存在就创建file文件夹
{
Directory.CreateDirectory(strAttURLNew)
}
string strAttURL = System.Web.HttpContext.Current.Server.MapPath("~/TempFile/upfiles/") + SendMailRowGuid.Text + "\\" + Convert.ToString(dvApps[r]["AppurtenanceName"])
if (File.Exists(strAttURL) == true)//如果不存在就创建file文件夹
{
string destPath = Path.Combine(@strAttURLNew, Path.GetFileName(@strAttURL))
System.IO.File.Copy(@strAttURL, destPath)
}