Creating Sub Directory C# with Example
using System.IO; using System; namespace CSharpFilesAndStreams { class Program { static void Main(string[] args) { CreateSubDirectory(); } static void CreateSubDirectory() { DirectoryInfo dir = new DirectoryInfo(@"C:\"); // Create \MyFolder off application directory. dir.CreateSubdirectory("MyFolder"); // Create \MyFolder2\Data off application directory. dir.CreateSubdirectory(@"MyFolder2\Data"); } } }