How do i create the New folder using C# winform Application?
  • Hi..
    I have to know how to create the Folder using C# winform Application.
    In my form has folder name text box and save button .
    if i press the save button. the folder will create.But Created Folder Should be in Drive E//AllProject//------
    the Folder name Should be the Foldernametextbox. text 
    plz help me 
  • 3 Comments sorted by

  •  private void button1_Click(object sender, EventArgs e)//Master Folder
            {
                string path = @"e:\All Project\" + "\\" + textBox1.Text;  
                if (!Directory.Exists(path))
                { 
                     Directory.CreateDirectory(path); 
                }           
            }

            private void button2_Click(object sender, EventArgs e)//Subfolder
            {
                string path = @"e:\All Project\" + "\\" + comboBox1.Text + "\\" + textBox2.Text;
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
            }
  • good (Y)
  • thank you

Howdy, Stranger!

It looks like you're new here. If you want to get involved, or you want to Ask a new Question, Please Login or Create a new Account by Clicking below

Login with Facebook

Popular Posts of the Week

    Optimum Creative