Functions

From MyWiki
Revision as of 19:55, 26 August 2014 by George2 (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

http://windowsitpro.com/windows/create-your-own-powershell-functions

function FileSize3 ($dir, $minSize)
{
 dir $dir |
 where {$_.length -gt $minsize\}
}

Is called like this:
FileSize3 -dir C:\Windows ` ( The back tick continues on a new line )
-minSize 100000