VB .txt Dateien in einer ListBox auflisten?

1 Antwort

Hi,

Dim Pfad As String = "X:\Ordner"        For Each File As String In FileIO.FileSystem.GetFiles(Pfad, FileIO.SearchOption.SearchAllSubDirectories)            If File.ToLower.EndsWith(".txt", StringComparison.CurrentCultureIgnoreCase) Then                ListBox1.Items.Add(System.IO.Path.GetFileName(File))            End If        Next

Danke :)

0

Was möchtest Du wissen?