-1
I’d like to do the following.
Create three folders inside each other in "c:/"
. Their names shall be designated by textboxes
and at last, create a file .doc
taking the values of textboxes
.
It is for windows Forms application.
I tried to:
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 one folder inside another! One I managed to create. It also needs to be in a specific path @"C:\folder"
. Thank you in advance!
Post what you’ve done and what is your doubt.
– Maniero
What type of project? ASP.NET Web Forms? MVC? Windows Forms?
– Leonel Sanches da Silva