Author: dcwmorley | Posted on: 10/11/2009 9:00:55 AM | Views : 234

I tried the following. I can't understand why nothing is written at labelb

<code>
        Dim file_name As String
        Dim FolderAddr As String = HttpContext.Current.Server.MapPath("Smith")
        ' For example on test : FolderAddr = d:\websites\xxxyyy\wwwroot\Smith
        Dim DirInfo As New DirectoryInfo(FolderAddr)
        '      
        For Each FileInfo In DirInfo.GetFiles
            file_name = FileInfo.FullName
            Labelb.Text = "File_name = " & file_name ' Nothing written at labelb
        Next

Go to the complete details ...