Gold Gold - 1 year ago 106
C# Question

Rename a file in C#

How do I rename a file using C#?

Answer Source

Take a look at System.IO.File.Move, "move" the file to a new name.

System.IO.File.Move("oldfilename", "newfilename");