On Nov 22, 4:04*pm, Personne <cpdiv...@xxxxxx> wrote:
Quote:
> How did you figure that out ?
>
> So following you idea, I tried this
>
> (dir some_exact_filename.txt) *| get-member *co*
> and
> @(dir some_exact_filename.txt) *| get-member *co*
>
> and no count property show up !!!
>
> I'm sad, very sad
Ah, this is another caveat. When you pass an array to a pipe, Get-
Member grabs each item INSIDE the array and processes it. To see the
array itself you need to use the input parameter.
Try this:
gm -in @(dir some_exact_filename.txt)
And in my case I found it out by trial and error, but I hope someone
out there has a more authoritative (and less frustrating) source to
suggest.