Imports System Public Class MainClass Shared Sub Main() 'List each folder at the root of your C drive For Each strFolder As String In _ My.Computer.FileSystem.GetDirectories("C:\") 'Add the item to the list System.Console.WriteLine(strFolder) Next End Sub End Class