mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 08:23:05 -05:00
tools: version-info.bat
This commit is contained in:
parent
a3643f8b02
commit
0cfc730745
15
tools/version-info.bat
Normal file
15
tools/version-info.bat
Normal file
@ -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
|
||||
)
|
||||
)
|
Loading…
x
Reference in New Issue
Block a user