tags:

views:

43

answers:

2

In the Windows Explorer I right click a DLL, choose Properties then the Version tab.

In the 'Other Version Information' area, under 'Item Name' there is a custom field called 'SVNBuildVerion'.

How can I retrieve that with PowerShell?

I've tried :

dir $targetDLL | select -ExpandProperty VersionInfo  | fl * -force
[System.Diagnostics.FileVersionInfo]::GetVersionInfo($targetDLL) | fl * -Force
A: 

Not sure, but I think that exmaple is produced for explorer by the SVN plugin extension for explorer.

Preet Sangha
A: 

Perhaps this is an extended property. Check out this old blog post that describes how to get extended properties for a file.

Keith Hill
Thanks Keith, no go. I tried 1..50 | % { "{0} {1}" -f $_, $myFolder.GetDetailsOf($fileobj,$_) }There is an in-house C++ pgm they used from PoSh to get the custom attribute. If I get the source and work it out in PoSh I'll post it.
Doug Finke
http://www.codeproject.com/KB/install/VerPatch.aspxThis article seems to solve it. Anyone know of a C# version? They are looking for it too.
Doug Finke