Excluding (or if not removing specific folders) from Dim dirs() As String = Directory.GetDirectories(path)

  • Thread starter Thread starter wingers
  • Start date Start date
W

wingers

Guest
Hi

I am using

Dim dirs() As String = Directory.GetDirectories(path)


To get list of folders from my drive


I want to exclude all folders starting with $ e.g. $Recycle.Bin etc


What is best way to either exclude them at point of retrieving them, or if that can't be done with GetDirectories (which I think it can't as filter can only include not exclude), then how can I remove them from dirs() before continuing with my code/


Thanks




Darren Rose

Continue reading...
 
Back
Top