Search multiple files though sub folders VB.net
<p>I'm having a hard time trying to figure it out how to find multiple files through sub folders, I'm looking for different file names and I think that's why I can't solve it.</p>

<p>"file_name" in the code is the name of the varible, I pull the name of the document from the data base which it's stored in a field without the extension and then when it finds the .docx/doc file it should convert it to pdf.</p>

<pre><code>    Dim di As DirectoryInfo = New DirectoryInfo("\\192.168.1.70\sisint\court\
agreements")

        For Each fi In di.GetFiles(file_name, SearchOption.AllDirectories)

            'seleccionamos los archivos con las extensiones de Word
            If fi.Extension.ToUpper = ".DOC" Or fi.Extension.ToUpper = ".DOCX" Then
                ListaArchivos.Add(fi.FullName)
                ListaNombres.Add((fi.Name.Substring(0, fi.Name.Length - fi.Extension.Length)))

            End If

        Next
</code></pre>