another reply to "How to match array elements with a file path"

Here’s another way to match against two patterns:

dir | where { $_.fullname | select-string -notmatch corp,sales }

Are you asking a question?

dir | where {$_.fullname -match “vid|down”}

Someone closed\resolved the forum thread:

https://powershell.org/forums/topic/how-to-match-array-elements-with-a-file-path/

This thread was started so that js could confuse everyone starting a thread with an answer to an unlinked forum thread. This thread should be set as resolved as well.

I wanted to add another answer to the other thread. I don’t think any threads should be closed.