|
Re: Help a newbie "brhessel" <brianhesseling@gmail.com> wrote in message
news:1179343841.544924.165940@k79g2000hse.googlegroups.com...
>
> Ok so I am up to:
>
> get-ChildItem -recurse -include a_*.nsf |Select-Object
> Name,FullName,Length,LastAccessTime |export-Csv -path C:\archives.csv
>
> How do I convert the Length into MB before exporting it?
get-ChildItem -recurse -include a_*.nsf |Select-Object
Name,FullName,@{n='Length';e={$_.Length/1MB}},LastAccessTime
|export-Csv -path C:\archives.csv
Note that Select-Object and a number of other cmdlets allow you to use a
hashtable to specify the name and value for a computed property.
--
Keith |