首页 > 其他 > 详细

将Temporary文件夹里的Logo文件转移到Logo文件夹

时间:2015-01-11 12:15:59      阅读:251      评论:0      收藏:0      [点我收藏+]
  /// <summary>
        /// 将Temporary文件夹里的Logo文件转移到Logo文件夹
        /// </summary>
        /// <param name="new_resume"></param>
        /// <returns></returns>
        private bool RemoveToLogo(Resume new_resume)
        {
            string destinationPath = new_resume.AvatarPath.Replace("Temporary", "Avatar");
            FileInfo file=new FileInfo(new_resume.AvatarPath+"\\"+new_resume.Avatar);
            string savePath = destinationPath + new_resume.Avatar;
            //将文件从临时文件夹转到存储相关文件的文件夹
            try
            {
                if (file.Exists) file.MoveTo(savePath);
                return true;
            }
            catch
            {
                return false;
            }
        }

 

将Temporary文件夹里的Logo文件转移到Logo文件夹

原文:http://www.cnblogs.com/wiming/p/4216243.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!