How to rename all Folders and Sub folders in C# Programming ?
Sadly, a particular rename process that can be used to rename a directory is not available.
We can, however, use the DirectoryInfo class MoveTo method instance, or the Directory Class static Move method instead.
We can rename a directory in the following video by using the static moving method.
We also, rename all the sub directories in the parent directory using recursive function.