DirectoryInfo.CreateSubdirectory : DirectoryInfo « System.IO « C# / C Sharp by API






DirectoryInfo.CreateSubdirectory

 
using System;
using System.IO;

public class MainClass
{
  static void Main(string[] args)
  {
    DirectoryInfo MyRoot = new DirectoryInfo(@"c:\projects");
        MyRoot.CreateSubdirectory("MyFolder");
  }
}

   
  








Related examples in the same category

1.new DirectoryInfo(String path)
2.DirectoryInfo.CreationTime
3.DirectoryInfo.Exists
4.DirectoryInfo.FullName
5.DirectoryInfo.GetDirectories()
6.DirectoryInfo.GetFiles()
7.DirectoryInfo.GetFiles(String filter)
8.DirectoryInfo.LastAccessTime
9.DirectoryInfo.LastWriteTime
10.DirectoryInfo.Name
11.DirectoryInfo.Parent