rename a file at share c#
Rename a File in C#. If you want to rename a file in C#, youâd expect there to be a File.Rename method, but instead you must use the System.IO.File.Move method. You must also handle a special case when the new file name has the same letters but with difference case.