NewDirectory is Created in C Directory
This is a C# Program to create a directory.
This C# Program Creates a Directory.
Here a new Directory is created in C directory using createdirectory function.
Here is source code of the C# Program to Create a Directory. The C# program is successfully compiled and executed with Microsoft Visual Studio. The program output is also shown below.
/* * C# Program to Create a Directory */ using System; using System.IO; class program { public static void Main() { Directory.CreateDirectory("C:\\NewDirectory"); Console.WriteLine("NewDirectory is Created in C Directory"); Console.ReadLine(); } }
This C# program is used to create a directory. Here a new Directory is created in C directory using createDirectory() function.
NewDirectory is Created in C Directory