Hello,
I wrote a program in vb.net that shows shows the path of every file in a directory in a messagebox however I would like to do the same thing so that the program shows every file in the main directory and sub directories. Here is my code:
Dim dirInfo As New System.IO.DirectoryInfo("C:\my documents")
Dim file As System.IO.FileInfo
Dim files() As System.io.FileInfo = dirInfo.GetFiles("*.*")
For Each file In files
Dim sr As New IO.StreamReader(file.FullName)
Dim str As String = sr.ReadToEnd
MESSAGEBOX.SHOW(file.fullname)
Next
Thanks
Al968