mein code sieht derzeit so aus:
StringCollection log = new StringCollection(); string[] filePaths; string s = SearchBox.Text.ToString(); string[] fs = (s.Split(';')); foreach (string str_fs in fs) { try { filePaths = Directory.GetFiles(str_SearchPath.Text, str_fs, SearchOption.AllDirectories); } catch (UnauthorizedAccessException e) { log.Add(e.Message); continue; } foreach (string f in filePaths) { listView1.Items.Add(f); } }
wo liegt der fehler?
Danke im voraus