string[] filePaths = Directory.GetFiles(@path, "*", SearchOption.AllDirectories); foreach (var item in filePaths) { var r = item.Substring(item.LastIndexOf(@"\") + 1); richTextBox1.Text = richTextBox1.Text + r + Environment.NewLine; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)