I've got some old legacy code that I'm maintaining (please forgive the naming, this was written by a non programmer and the application is not important enough to be rewritten):
Dim Path3 As String
Path3 = "C:\Inetpub\wwwroot\uscgcrc\rsa\RSADocuments\IRBCorrespondenceToPI\"
Dim dirInfo3 As New DirectoryInfo(Path3)
Dim FileContainer3 As FileInfo() = dirInfo3.GetFiles("1370*.*")
Dim FileOnly3 As FileInfo
For Each FileOnly3 In FileContainer3
Response.Write("<tr style='border: 1px solid #000000;'><td>")
Response.Write("<a href='https://www.uscgcrc.org/rsa/RSADocuments/IRBCorrespondenceToPI/" + FileOnly3.Name + "'>" + FileOnly3.Name + "</a><br>")
Response.Write("</td></tr>")
Next FileOnly3
The files returned are:
1302_IRBCorr_04-27-10.pdf
1302_IRBCorr_06-10-10.pdf
1309_IRBCorr_04-08-10.pdf
1309_IRBCorr_04-02-10.pdf
1370_1000485_IRB-Accept_with_Contingencies_Letter_09-23-10.pdf
As you can see the files returned do not all match the search pattern that I pass to GetFiles. This code works for every other search pattern like ("1369*.*") etc.
The files that it pulls up seem to have nothing in common, but those 5 files are pulled up every time for the search pattern "1370*.*"
What the heck could be going on here?