Im using directory.getfiles in vb.net to try and get a list of files in a given path.
What i want is to return all that files that have certain extensions (*.xls and *.xml)
The search pattern im using is: "*.xls, *.xml" and this fails as it returns no files, when i know that there is. I've also tried using ";" and ":" to seperate the extensions but no luck.
Does anyone know how to check multiple extensions in the searchPattern argument??
Question
random_user_uk_1234
Im using directory.getfiles in vb.net to try and get a list of files in a given path.
What i want is to return all that files that have certain extensions (*.xls and *.xml)
The search pattern im using is: "*.xls, *.xml" and this fails as it returns no files, when i know that there is. I've also tried using ";" and ":" to seperate the extensions but no luck.
Does anyone know how to check multiple extensions in the searchPattern argument??
thanks for reading...
Link to comment
https://www.neowin.net/forum/topic/158194-directorygetfiles-method-in-vbnet/Share on other sites
13 answers to this question
Recommended Posts