Hi,
I am wanting to populate $source with only the filenames which have UK in it.
Currently using
$source = Get-ChildItem -Path "\\Suppressions\" -Filter '*.csv'
How would I get that to just pick UK filenames?
TIA
Hi,
I am wanting to populate $source with only the filenames which have UK in it.
Currently using
$source = Get-ChildItem -Path "\\Suppressions\" -Filter '*.csv'
How would I get that to just pick UK filenames?
TIA
maybe this is helpful to get started:
$source = Get-ChildItem -Path .\Junk -file "*UK*.*"
$source
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten
10 people are following this question.