Good morning friends:
I have a question please:
I want to create an array but filter the names of the files, I was using one:
Before I had the following:
Now I would like the opposite, that is to say that it only filters those that are not “AKP”
The array should contain the following:
Hi @Lynx ,
We can only use literals (* ?) in the Search Pattern, so there isn’t much we can do with that Function alone.
It has to be supplemented with a method or two like so:
Directory.GetFiles(Downloadfolder,"*.xlsx").Where(Function(w) Not (Path.GetFileNameWithoutExtension(w).ToLower.Contains("akp"))).ToArray()
Could you give that a try and let us know if it works?
we have several options for this type of inclusion / exclusion like LINQ, Regex, Set Operations
Thank you very much @ashwin.ashok
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.