Sunday 4 May 2014

Powershell and DLL VersionInfo

This will be a quick post, but will hopefully help someone.

Finding a list of DLL files in the current directory along with their versions.

1. The long way:

Get-ChildItem *.dll | Select-Object -ExpandProperty VersionInfo | Select-Object ProductName,FileVersion

2. The short way:

ls *.dll | select -Exp VersionInfo | select ProductName, FileVersion

That's it! Aliases make Powershell easier to use. Just make sure you know how to compose the long way as well. Gotta know where you came from to know where you're going, I always say.

Adam Krieger

No comments:

Post a Comment