各ファイルのファイル名とフルパスを取得しようとしています。以下のスニペットは、「foo」フォルダー内のすべてのフォルダーを検索し、ListBox
.
Dim di As New DirectoryInfo("C:\\foo")
Dim diar As FileInfo() = di.GetFiles("*.*", SearchOption.AllDirectories)
Dim dra As FileInfo
For Each dra In diar
ListBox.Items.Add(dra)
ListBox1.Items.Add(would be full path here)
Next
しかし、各ファイルのフルパスも出力したいのですがListBox1
、どうすればいいですか?