Hello people,

I have made following code that gather each path for all folders and subfolders in a certain path.
my result generates approx 6000 different items.

Now I need to exclude some folders.

My first question:
is the fastest way to make a list of items that is exceptions in my searchfunction of what I am not intrested in?

because I have got several folders I don't want to find and its always the same pattern.
if how?

this is my code

Code:
    Private Sub Button2_Click_1(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

        For Each d In Directory.EnumerateDirectories("C:\", "*.*", SearchOption.AllDirectories)
            Dim myPath = ((d.ToString()))

            Console.WriteLine(myPath)
        Next
    End Sub
or will I add all items as they are to a new list (this take ages years!) then clean unwanted items from the list.

Here is an example of my result from the code:


C:\Archive\custommers\original-files\32001-33000\32100\32099\
C:\Archive\custommers\original-files\32001-33000\32100\32099\hello\
C:\Archive\custommers\original-files\32001-33000\32100\32099\dontuseme\
............. and so on........

C:\Archive\custommers\original-files\33001-34000\33100\33099\
C:\Archive\custommers\original-files\33001-34000\32100\33099\hello\
C:\Archive\custommers\original-files\33001-34000\32100\33099\dontuseme\

.............and so on......


and so on.....

Could someone help me?

Thank you in advance !