M
Mobile Boy
Hello group,
When using "*.doc" as searchpattern, Getfiles is filling the enumerator with
doc-files but also incorrectly with docx files.
Try this little piece of code to reproduce this issue.
Why does "*.doc" ends in a list of both, doc-files and docx-files?
Dim En As IEnumerator
Dim FoundFile As String
En = System.IO.Directory.GetFiles(_Directory, "*.doc").GetEnumerator()
While En.MoveNext
FoundFile = System.Convert.ToString(En.Current.ToString)
End While
Best regards,
Mobile boy
When using "*.doc" as searchpattern, Getfiles is filling the enumerator with
doc-files but also incorrectly with docx files.
Try this little piece of code to reproduce this issue.
Why does "*.doc" ends in a list of both, doc-files and docx-files?
Dim En As IEnumerator
Dim FoundFile As String
En = System.IO.Directory.GetFiles(_Directory, "*.doc").GetEnumerator()
While En.MoveNext
FoundFile = System.Convert.ToString(En.Current.ToString)
End While
Best regards,
Mobile boy