Formatting file listings

A question was left asking about displaying a file listing with the full name in upper case and the extension in lower case. Its one line of PowerShell

Get-ChildItem |            
where {-not $_.PSIsContainer} |            
sort Fullname |            
Format-Table @{N="FullName"; E={$($_.Fullname.ToUpper())}},             
@{N="Extension"; E={$($_.Extension.ToLower())}}, Length, LastWriteTime -Autosize

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>