Public Class Tester Public Shared Sub Main
For Each oneItem As String In My.Computer.FileSystem.GetFiles("c:\\", _
FileIO.SearchOption.SearchTopLevelOnly,"*.txt")
Console.WriteLine(My.Computer.FileSystem.GetName(oneItem))
Next oneItem End Sub End Class