SearchOption.AllDirectories) Dim filecount As Integer = files.GetUpperBound(0) + 1 Dim i As Integer Dim j As Integer = 0 Dim n As String = files.Length Dim T(n) As String While i < filecount T(j) = files(i) j = j + 1 System.Math.Min(System.Threading.Interlocked.Increment(i), i - 1) End While For j = 0 To n - 1 ListBox1.Items.Add(T(j)) Next j