///
/// 指定路径拷贝(复制)文件
///
/// 原路径
/// 新路径
public void copyMyFile ( string oldPath, string newPath )
{
if ( File.Exists ( oldPath ) && !File.Exists ( newPath ) )
{
File.Copy ( oldPath, newPath );
MessageBox.Show ( "拷贝(复制)成功!" );
}
else
{
MessageBox.Show ( "原路径文件不存在或新路径文件已存在!" );
}
}