Functions

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

Jump to: navigation, search

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

function FileSize2
\{
 dir $args\[0\] |
 where \{$_.Length -gt 100000\}
\}

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