Getting names of all the subfolders inside a folder

studio

#1

I have been given task to rename each and every subfolders inside a folder. If the subfolders have more folders I have to rename that too. Can anyone help me with this problem?


#2

We have to check for each folder if there is a folder inside it or not, if it’s present we will go inside folder and rename it and check for existence of other folders in those folder.


#3

Use “Directory.GetFiles(selectFolder,”.",SearchOption.AllDirectories)"

image

You have to do string manipulations in side the body. all the best!


#4

What String manipulations?


#5

Ankeeta Priyam
http://www.encyclopedia.com/computing/dictionaries-thesauruses-pictures-and-press-releases/string-manipulation