Tuesday, August 16, 2011

How to create a folder in C#.Net

Following is program to create a folder in C#.Net



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.IO;

namespace CreateFolderByManishAgrahari
{
    class CreateFolder
    {
        static void Main(string[] args)
        {
            Directory.CreateDirectory("C:\\ThisIsTestFolder");
        }
    }
}


0 comments: