یافتم یافتم

با این کد:




private void button2_Click_1(object sender, EventArgs e)
{


string text = "";
foreach (var item in ListBox1.Items)
{
text = Path.GetFileNameWithoutExtension(item.ToString());
string activeDir = txtDirectoryPath.Text;
string newPath = System.IO.Path.Combine(activeDir, text);
System.IO.Directory.CreateDirectory(newPath);


}
}