View Single Post
Old 08-14-2007   #9 (permalink)
RichS


 
 

Re: stoopid newb question

There is an awful lot in the format operator. It is well worth getting to
know. Also check out the articles on msdn about using it
--
Richard Siddaway
Please note that all scripts are supplied "as is" and with no warranty
Blog: http://richardsiddaway.spaces.live.com/
PowerShell User Group: http://www.get-psuguk.org.uk


"Hal Rottenberg" wrote:

> On Aug 14, 11:24 am, RichS <Ri...@discussions.microsoft.com> wrote:
> > this gives a prettier output
> >
> > ls c:\ -rec | where{$_.mode -like "d*"} | foreach{ $size =
> > $di.getfolder($_.fullname).size/1mb; "{0,9} {1,2} " -f $size, $_.fullname }

>
> And here's a link about the format operator "-f".
>
> http://www.computerperformance.co.uk..._-f_format.htm
>
> (I'm still trying to grok this one myself.)
>
>

My System SpecsSystem Spec