Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Rewards
SharpGPT
Premium
Register
Login
How to rename a directory or folder in C#
WhatsApp
Soft Dev
12y
44.3
k
0
5
Resource
0
You can use Directory.Move method to move or rename a directory or folder. This method takes two parameters - the existing folder and new folder.
Here is the code snippet.
Directory.Move(fromDir, toDir);
directory
C#