![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| Guest | about_function doc error The help about_function doc seems mixed up: "...You can also define parameters in filters. For example, to create a filter that returns a list of processes with a certain initial letter, use a format such as the following: filter process_1 { param([string]$first) $_.processname -like "$first*" } When you call the filter, you must specify the first letter as an argument, as shown in the following example: Get-Process | where { process_1 c } ..." This seems to have a few issues. 1) the filter returns bool, not an object and 2) "where { filter }" is not correct. I think the intention was this: filter process_1 { param([string]$first) if ($_.processname -like "$first*") {$_} } PS c:\> process | process_1 win -- William Stacey [C# MVP] |
My System Specs![]() |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with windows vista mail, Socket Error: 10053, Error Number: 0x800CCC0F | ASM | Vista mail | 4 | 03-22-2008 08:03 PM |
| Canot post to newsgroups Socket Error: 10053, Error Number: 0x800CCC0F | ThatsIT.net.au | Vista mail | 1 | 03-09-2008 10:23 AM |
| Canot post to newsgroups Socket Error: 10053, Error Number: 0x800CCC0F | ThatsIT.net.au | Vista General | 0 | 03-09-2008 08:10 AM |
| windows live mail 2008 (Build 12.0.1606) error report error | gbp007 | Windows Live | 13 | 01-23-2008 11:06 PM |
| Port: 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC18 | Jesse Linville | Vista mail | 1 | 04-20-2007 06:52 PM |