Ignora collegamentiHome / Blog

Blog


How to create a Directory with C#

Create a directory in C # is really very simple!

using System.IO;

class CreateDirectoryTest
{
   public static void Main()
   {
   string pathOfDirectory = "C:\\Documents and Settings\\User\\MyDirectory";
   Directory.CreateDirectory(pathOfDirectory);
   }
}

 



Category: C#