c# copy file and rename code example
Example 1: c# rename file
System.IO.File.Move("oldfilename", "newfilename");
Example 2: c# rename file add
File.Move("NameToBeRename.jpg","NewName.jpg");
Example 3: c# copy file
File.Copy(Path.Combine(sourceDir, fName), Path.Combine(distDir, fName));