Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27189

Backgroundworker for methods e.g. retrieve folder recursively

$
0
0
Hi,

Is it possible to use backgroundworker for method instead of controls?

Somehow this statement will take a long time to execute > Directory.GetFiles("C:\", "*", SearchOption.AllDirectories

Code:

For Each filename As String In Directory.GetFiles("C:\", "*", SearchOption.AllDirectories)
            '...
        Next


Please advise.

Thanks

Viewing all articles
Browse latest Browse all 27189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>