How to create subfolders in a folder using c# through coding ?
Loading
How to create subfolders in a folder using c# through coding ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Micke BlomqvistPosted Mar 25, 2011, 6:47 AM
You create a folder like this:
// First, check if the folder exists or not
if (!System.IO.Directory.Exists(@"C:\folder\sub1"))
{
System.IO.Directory.CreateDirectory(@"C:\folder\sub1");
}