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