HomeWeb Coding

Access Files Collection using File Object : Asp.net

Like Tweet Pin it Share Share Email

Dim objCurrDir As DirectoryInfo
Dim arrFiles() As FileInfo, tempFile As FileInfoobjCurrDir = New DirectoryInfo(sPPhyPath)
arrFiles = objCurrDir.GetFiles(iFormCode & ".*")

For Each tempFile In arrFiles
    If File.Exists(tempFile.Name) Then
        — your code —
    End If
Next

Comments (0)

Leave a Reply

Your email address will not be published. Required fields are marked *