I would like to do the following.
Create three folders within each other in "c:/"
. Their names will be designated by textboxes
and in the last, create a .doc
file by taking the values of textboxes
.
It's for windows forms application.
I've tried:
string folder = @"C:\folder"; //nome do diretorio a ser criado
folder = textBox1.Text;
//Se o diretório não existir...
if (!Directory.Exists(folder))
{
//Criamos um com o nome folder
Directory.CreateDirectory(folder);
}
My question is how to create folders inside the others! One I was able to create. It also needs to be on a specific path @"C:\folder"
. Thank you in advance!