This VI uses the ActiveX FileSystemObject that is part of the Microsoft scripting host to gather file version information for exe’s and dll’s. The VI returns the version information in a variety of forms for parsing in an application.
The VI takes a filespec (path + filename) to a file for which you want the version info. It returns the following:
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi!
Looks nice!
I've been using the vi ..\National Instruments\LabVIEW 2009\vi.lib\Platform\fileVersionInfo.llb\FileVersionInfo.vi to accomplish the same thing. Take a look at it. I found it very useful!
Cheers!
Thanks for the pointer to that! Do you have a method to crowbar the lpData into the FileVersionInformation.ctl? I should spend some time and dig through those llb's...
Thanks a lot for this hint. In my opinion this implementation is better as this one her:https://forums.ni.com/t5/LabVIEW/File-version-info/m-p/361945?jump=true
It doesn't use the .NET Runtime which have to be installed on some operation systems.
Thanks a lot.