title: Avoid system Volume information folder
body: <p>I am using following code to get directory info.  it works well if I search topleveldirectory.
  But when i search alldirectories, it reaches system level information and throws error.
  Is there any way to avoid searching system level information folder?
  Thanks</p>
  
  <pre><code>Imports System.IO
  Public Class Form1
  
      Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
          Dim di As New DirectoryInfo("d:\"), i As Integer
          Dim aryFiles() As FileInfo = di.GetFiles("*.doc", SearchOption.TopDirectoryOnly)
          For i = LBound(aryFiles) To UBound(aryFiles)
              MsgBox(aryFiles(i).FullName)
          Next i
      End Sub
  End Class
  </code></pre>