How can I make each disk processed in its stream?

Sub list_of_file() For Each drive In My.Computer.FileSystem.Drives If drive.DriveType = IO.DriveType.Fixed Then seach(drive.Name) End If Next End Sub 

So that each seach() in a new thread.

    1 answer 1

    The easiest way to start is to put the necessary code in the method and call it in a separate thread.

     ThreadPool.QueueUserWorkItem(AddressOf SomeMethod) 
    • @ Hippo ThreadPool.QueueUserWorkItem (AddressOf seach (drive.Name)) is it possible? - dizar47