From 0cfc73074507e684f67869781efdc08091bd961f Mon Sep 17 00:00:00 2001 From: Bill Zissimopoulos Date: Thu, 6 Apr 2017 15:56:01 -0700 Subject: [PATCH] tools: version-info.bat --- tools/version-info.bat | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tools/version-info.bat diff --git a/tools/version-info.bat b/tools/version-info.bat new file mode 100644 index 00000000..d3b81339 --- /dev/null +++ b/tools/version-info.bat @@ -0,0 +1,15 @@ +@echo off + +setlocal +setlocal EnableDelayedExpansion + +for %%f in (%*) do ( + set file="%%~f" + if exist !file! ( + echo version-info: !file! + powershell -command "[System.Diagnostics.FileVersionInfo]::GetVersionInfo(""!file!"") | fl -property ProductName, ProductVersion, ProductVersionRaw, LegalCopyright, CompanyName, FileDescription, FileVersionRaw, FileVersion" + powershell -command "try { [System.Reflection.AssemblyName]::GetAssemblyName(""!file!"") | fl -property FullName, Version } catch {}" + ) else ( + echo version-info: file !file! not found + ) +)