How do I rename a file using C#?
You can copy it as a new file and then delete the old one using the System.IO.File class:
System.IO.File
if (File.Exists(oldName)) { File.Copy(oldName, newName, true); File.Delete(oldName); }