How to save update and delete the Folder using C#
  • //save button click 
      string Xname = _dpt.DptName;
        string path = @" E:\DCR" + "\\" + NametxtBox.Text;
                string expath = @" E:\DCR" + "\\" + Xname; 
     if (!Directory.Exists(path))
                    Directory.CreateDirectory(path);//Create
                else
                    Directory.Move(expath,path);//Update

    delete button Click
     if (Directory.Exists(path))
          Directory.Delete(path);

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