private void button5_Click(object sender, EventArgs e) { { string[] files = System.IO.Directory.GetFiles(Path.Combine(@"C:\POS\Book\Book\" + label6.Text, "Prijave")); { this.comboBox2.Items.AddRange(files); }
Path.Combine
string[] filePaths = Directory.GetFiles(@"C:\POS\Book\Book\" + label6.Text, "Prijave"); foreach (string file in filePaths) { combobox2.items.add(file); }
string[] fileNames = System.IO.Directory.GetFiles(Path.Combine(@"D:\DataLoad\" + label6.Text, "Prijave")).Select(k => Path.GetFileName(k)).ToArray();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)