I'd like to be able to do
gci -filter *.ps1,*.cs,*.sql
but that syntax isn't supported.
Use -Include which takes an array, instead of -Filter. Note that you have to use * as the path when using -Include:
Get-ChildItem * -Include *.ps1,*.cs,*.sql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With