TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to rename a directory or folder in C#
Soft Dev
May 28 2012
Resource
0
0
60.5
k
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
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#