Notice the -Recurse parameter that will drill down every sub-directory as well; remove this if you only want the top level directory.
Get-ChildItem -Path C:\Scripts -Recurse | Select-Object Extension | Sort-Object Extension | Get-Unique -asString
Woo-hoo!
No comments:
Post a Comment