Populate ListView Box with Current Directory Info

G

Guest

How can I populate a ListView Box with the current directory, filename, file
length, date created and date last modified?
I can get the current directory and length by using

Dim Path As String = System.IO.Directory.GetCurrentDirectory()

With Me.ListViewBox1
Item = New ListViewItem(Path)
Item.SubItems.Add(Path.Lenght)
..Items.Add(Item)
End With

But that’s all I can do. I would like to use a For Each Loop to iterate thru
each file till I come to the end.
Any ideals
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top