码迷,mamicode.com
首页 > 其他好文 > 详细

复制文件

时间:2014-11-06 19:10:53      阅读:162      评论:0      收藏:0      [点我收藏+]

标签:os   sp   文件   div   bs   new   nbsp   file   text   

//原文件路径

 string filepath = PathTextBox.Text;

//要保存文件名 

 string name = PathTextBox.Tag.ToString();

//要保存到的路径 

 string newPath = NewPathTextBox.Text + "\\" + name;

 File.Copy(filepath, newPath, true); 

复制文件

标签:os   sp   文件   div   bs   new   nbsp   file   text   

原文地址:http://www.cnblogs.com/xiaoyaodijun/p/4079251.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!