You can use System.IO.File class's Copy static method to copy a file.
"C:\\Test.txt", "D:\\Test.txt", true)System.IO.File.Copy(
This code will copy the C:\Test.txt file to D:\ with the same name. And if the target directory contains a file with the same name, it will be overwritten.

Join the conversation! Your thoughts help the community grow.