you could look in to IO.Directory and IO.File , here's an example of getting all directories in the C:\ area and adding to a treeview :
VB Code:
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2.         Dim directory As IO.Directory
  3.         Dim strPaths() As String = directory.GetDirectories("C:\")
  4.         Dim x As Integer
  5.  
  6.         For x = LBound(strPaths) To UBound(strPaths)
  7.             TreeView1.Nodes.Add(strPaths(x))
  8.         Next
  9.  
  10.     End Sub