Skip to content

Instantly share code, notes, and snippets.

@MagicAndi
Created December 13, 2014 17:58
Show Gist options
  • Save MagicAndi/ff43babe9e04bf80cd93 to your computer and use it in GitHub Desktop.
Save MagicAndi/ff43babe9e04bf80cd93 to your computer and use it in GitHub Desktop.
PowerShell script to list unique filenames (DLLs in example) in a specified directory
Get-ChildItem 'C:\Temp\' -recurse -filter "*.dll" -name | % { [IO.Path]::GetFileNameWithoutExtension($_) } | Sort-Object -unique
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment