Take a look at System.IO.File.Move, “move” the file to a new name.
System.IO.File.Move("oldfilename", "newfilename");
More Related Contents:
- How do I hide information in a file? [closed]
- Is there a way to check if a file is in use?
- How do I check if a given string is a legal/valid file name under Windows?
- Writing data into CSV file in C#
- Open existing file, append a single line
- How to change the timeout on a .NET WebClient object
- Notification when a file changes?
- Best way to resolve file path too long exception
- C# – How to get Program Files (x86) on Windows 64 bit
- Import CSV file to strongly typed data structure in .Net [closed]
- Why can’t I use System.IO.File methods in an MVC controller?
- How to get files in a relative path in C#
- How to use httpwebrequest to pull image from website to local file
- How can I create a temp file with a specific extension with .NET?
- How to check if System.Net.WebClient.DownloadData is downloading a binary file?
- File System TreeView
- Open a file and replace strings in C#
- Extracting Windows File Properties (Custom Properties) C#
- open file in exclusive mode in C#
- Open a file with Notepad in C#
- What is the difference between File and FileInfo in C#?
- Find all files in a folder
- How do I get File Type Information based on extension? (not MIME) in c#
- How to split a large file into chunks in c#?
- 2d Array from text file c# [closed]
- Delete files older than 3 months old in a directory using .NET
- Read numbers from a text file in C#
- TransactionScope With Files In C# [duplicate]
- C# Searching for files and folders except in certain folders
- Check last modified date of file in C#