Well, I have to look in a folder and I get in the variable FilePathList an array of strings with the absolute path and including the name of all the files in a folder.
Thats nice, and now I want an optimal way of determine wether or not one of those arrays contains the pattern: “.tar.gz.part” and here is my problem.
I can do that using a for and and an ismatch expression and cycling for every file but I would like to find a better solution.
It would be incredible if this worked but it does not:
FilePathList.Contains(“.tar.gz.part”) Basically my problem is that contains an many other string methods do not work with wilcards (*) so here I am… asking for a way with probably vbnet code that cycles throgh the array of paths searching for the pattern.
Thanks in advance if someone can solve this,