复制文件

//原文件路径

 string filepath = PathTextBox.Text;

//要保存文件名 

 string name = PathTextBox.Tag.ToString();

//要保存到的路径 

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

 File.Copy(filepath, newPath, true); 

posted @ 2014-11-06 16:35  逍遥帝君  阅读(165)  评论(0编辑  收藏  举报