private void GetFilesRec(ShellItem path) { foreach (ShellItem item in path) { try { if (item.IsFolder) { try { GetFilesRec(item); } catch (Exception) { } } else { shol.Add(item); } } catch (Exception) { } } }