View Single Post
Old 11-22-2008   #1 (permalink)
Personne


 
 

Having hard time with Get-Member

The way I see it so far is that Get-member is a very powerful and
helpful command when playing with powershell

I'm still a newbie with Powershell, but I'm having sometimes hard time
to understand few things

PS > "hello".length
5

I've learnt about .length by typing
PS > "hello" | get-member

and I found the property length
Length Property System.Int32 Length {get;}

I'm reading Power Shell Pocket reference, and I found this example:

PS >(dir).Count
2276

So I thought that I will find the count property of dir (or get-
childintem) by typing
PS > dir | get-member
or
PS > child-item | get-member

but I'm cannot find it

Is this normal ?
Am I missing something ?
My System SpecsSystem Spec