Skip to content

Instantly share code, notes, and snippets.

@themindfulcoder
Created October 25, 2016 08:06
Show Gist options
  • Save themindfulcoder/f8979b15f4f2cc51d92d944712107367 to your computer and use it in GitHub Desktop.
Save themindfulcoder/f8979b15f4f2cc51d92d944712107367 to your computer and use it in GitHub Desktop.
A powershell script to list files and their version info recursively.
$files = Get-ChildItem .\* -Include *.dll, *.exe -Recurse
foreach ($file in $files)
{
$name = (Get-Item $file).FullName;
$vif = (Get-Item $file).VersionInfo.FileVersion
$vip = (Get-Item $file).VersionInfo.ProductVersion
Write-host $Name F:$vif P:$vip
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment