Get-ChildItem -Path C:\ -Filter CAPS*
finds caps.txt I want to make sure it will only find CAPS.txt (or e.g. CAPS901918.whatever)
I've tried find ways to pipe the Filter to an expression like:
{ $_.What_I_just_said_to_filter_on -like [A-Z] }
or suppress output after receiving results but I have found nothing.
-Recurse
if you want to look in subdirectories.-Force
will grab hidden and system files. Also run this from an elevated prompt else you would could get lots of errors using-Recurse
.