Edit 7: I\'m guessing this can\'t be done after all, might need to use some kind of command line application to do this and and parse the output, although I expect this could be very slow when lots of
I have a folder with far too many files in, and I want to go through each file one by one. The problem is that Directory.GetFiles returns a completed array, and this takes too long.
Here is my code, Dim allFiles As FileInfo() = tempDir.GetFiles(\"*.pdf\", SearchOption.AllDirectories)